jQuery hover() Method
jQuery hover() Method
The hover() method is used to specify two functions to run when the mouse pointer hovers over the selected elements. The two methods are mouseenter and mouseleave which are triggered by the hover() method.
Syntax:-
Its syntax is:- $(selector).hover(inFunction,outFunction)
Further Explanation:-
Parameter | Description |
---|---|
inFunction | Required. Specifies the function to run when the mouseenter event occurs |
outFunction | Optional. Specifies the function to run when the mouseleave event occurs |