jQuery .hover()
Learn all about the jQuery function .hover().
The .hover()
method binds handlers for both mouseenter
and mouseleave
events. You can use it to simply apply behavior to an element during the time the mouse is within the element.
Calling $( selector ).hover( handlerIn, handlerOut )
is shorthand for:
1
|
|
See the discussions for .mouseenter()
and .mouseleave()
for more details.