jQuery mouseleave() Method
jQuery mouseleave() Method
The mouseleave event is used to occur when the mouse pointer leaves the selected element. The mouseleave() function triggers the mouseleave event. We can attach a function to this event. It is used together with mouseenter() method.
Syntax:-
Its syntax is:- $(selector).mouseleave(function)
Further Explanation:-
Parameter | Description |
---|---|
function | Optional. Specifies the function to run when the mouseleave event is triggered |