jQuery mouseleave() method

Definition

The mouseleave event triggers when the mouse pointer leaves the matched element. It gets fired by the jQuery mouseleave() method.

Syntax

The following is the syntax,

The following is the parameter,

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

Example

The following is the output,

Mouse hover on any of the <h3> heading, to trigger the mouse enter event. On mouse hover, it would change the color of the heading to red,

jQuery mouseenter() method example

When the mouse pointer leaves, it triggers the mouse leave event and further change the color of the <h3> headings to blue from red,

jQuery mouseenter() method
jQuery mousemove() method
Studyopedia Editorial Staff
contact@studyopedia.com

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