So after reading a recently answered question i am unclear if i really understand the difference between the mouseenter() and mouseover(). The post states
MouseOver():
Will fire upon entering an element and whenever any mouse movements
occur within the element.
MouseEnter():
Will fire upon entering an element.
I came up with a fiddle that uses both and they seem to be quite similar. Can someone please explain to me the difference between the two ?
I have also tried reading the JQuery definitions, both say the same thing.
The mouseover event is sent to an element when the mouse pointer enters the element
The mouseenter event is sent to an element when the mouse pointer enters the element.
Can someone please clarify with an example?
You see the behavior when your target element contains child elements:
http://jsfiddle.net/ZCWvJ/7/
Each time your mouse enters or leaves a child element,
mouseoveris triggered, but notmouseenter.