English, British subtitles

← 03-11 jQuery_Event_Listener

Get Embed Code
17 Languages

Showing Revision 1 created 04/08/2020 by paulwere904.

  1. Let's go in order.
  2. First we need to select
    the target using jQuery,
  3. then we want to add an event
    listener for the click event.
  4. Next when the button is clicked,
  5. the call back function needs
    to perform two actions.
  6. The first is to remove the button,
  7. and the second is to add
    the class to the body element.
  8. And now when the button is clicked,
    it disappears, and
  9. we'll see a success message.