jQuery click() method

Definition

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

Syntax

The following is the syntax,

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

  • func: When event occur, this function runs.

Example

The following is the output,

Click the heading to fire click event,

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

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading