English subtitles

← jQuery Event Listener

Get Embed Code
17 Languages

Showing Revision 3 created 05/25/2016 by Udacity Robot.

  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.