jQuery mouseleave() method

jQuery mouseleave() method


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


The following is the syntax,

The following is the parameter,

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


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
Studyopedia Editorial Staff
[email protected]

We work to create free tutorials for all.

No Comments

Post A Comment