A repository of over 1000 quality jQuery plugins

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:

$( selector ).mouseenter( handlerIn ).mouseleave( handlerOut );

See the discussions for .mouseenter() and .mouseleave() for more details.