jQuery click() method

jQuery click() method


Use the jQuery click() method to trigger an event on click of an element. For example, on click, it generates an alert box.


The following is the syntax,

The following is the parameter used in the jQuery click() method,

  • func: When event occur, this function runs.


The following is the output,

Click the heading to fire click event,

jQuery change() method
jQuery dblclick() method
Studyopedia Editorial Staff
Studyopedia Editorial Staff
[email protected]

We work to create free tutorials for all.

No Comments

Post A Comment