skip to navigation
skip to main content

Peer Pressure Creative

740 380 75 75 false false false false

Blog

Archive

Authors

Author Archives: Vik

jQuery’s hover != mouseenter/mouseleave

jQuery mouseenter

The jQuery docs state here that, “Calling $(selector).hover(handlerIn, handlerOut) is shorthand for: $(selector).mouseenter(handlerIn).mouseleave(handlerOut);.” Great feature, but unfortunately this doesn’t seem to be the case. If you get odd behavior with hover(), try mouseenter().mouseleave() instead!