Use the on() method to attach a click event handler to all <p> elements.
on()
Click here to try again.
$("w3exercise_input_no_0").on(w3exercise_input_no_1, function(){ $(this).hide(); });
w3exercise_input_no_0
w3exercise_input_no_1
Completed 0 of 60 Exercises:
This will reset the score of ALL 60 exercises.
Are you sure you want to continue?
Share your score:
Take our jQuery Developer Certificate to prove that you have fundamental knowledge of jQuery.