mouseover (): Fire events for children of this element.
hover (): Guidance actually works with mouseenter and mouseleave without being fired for children.
To achieve a hover effect, we need both mouseover and mouseout event
$("element").mousover(function(){
whereas in hover () it is just a callback.
$("element").hover( function () {
From David Jones Experience :
In the project I worked on, I set up the container div to use the mouse and mouse that added some html tabs to the container. It was fine, but I found that using mouseover / mouseout means the added html disappearing when I tried to interact with it along with another jquery I had in place, which contradicted him.
In the end, my specific solution required me to use mouseenter and mouseleave with a live function, rather than using hover, because I was working with the generated html.
Praveen
source share