1. NO child element
If the matched elements have no child element, both mouseover() and mouseenter() events are work exactly same. See try it yourself below.
2. WITH child element inside
mouseover()
- When mouse enters the “outerBox”, fire the “outerBox” event.
- When mouse enters the “innerBox”, fire the “innerBox” event, follow by the “outerBox” event.
- When mouse enters back to the “outerBox”, fire the “outerBox” event.
mouseenter()
- When mouse enters the “outerBox”, fire the “outerBox” event.
- When mouse enters the “innerBox”, fire the “innerBox” event.
- When mouse enters back to the “outerBox”, no event will fire.