jQuery mousedown() method

Definition

On pressing the left mouse button of the matched element, the mousedown event triggers. It gets fired by the jQuery mousedown() method.

Syntax

The following is the syntax,

The following is the parameter,

  • func: When mousedown event is triggered, this function runs. This is optional parameter.

 Example

The following is the output,

On pressing and releasing the mouse button on any of the <h3> heading, the mouseup and mousedown event triggers respectively,

jQuery keyup() method
jQuery mouseup() method
Studyopedia Editorial Staff
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