Mouseleave
For issues relating to setting up, subscribing to, or handling mouseleave events.
Mouseout
A mouseout is an event that occurs on an element when the user removes the cursor from that element
Text better
Example |
---|
"There can be times when mouseout is a better choice than mouseleave" from question What is the difference between jQuery's mouseout() and mouseleave()? "Also see i ve replaced mouseout with mouseleave which should work better than mouseout text will not jump up and down" from question Separating classes using IDs |
Others
Example |
---|
Some browsers implement the mouseenter mouseleave events that i ve noticed are more accurate than mouseout from question Why can't I reliably capture a mouseout event? |
Ppk has some excellent documentation on what is actually happening and why mouseout isn t doing what you think it should at that point technically you are mousing out of the layer when you mouseover its children which is a little odd conceptually;mouseleave will do the trick for you from question JQuery: issues with mouseover event if the element has children |