jquery hover out code example
Example 1: jquery hover
$( "td" ).hover(
() => {
$(this).addClass("hover");
},
() => {
$(this).removeClass("hover");
}
);
$( "td" )
.mouseover( () => {
$(this).addClass("hover");
})
.mouseout( () => {
$(this).removeClass("hover");
}
);
$( "td" )
.mouseenter( () => {
$(this).addClass("hover");
})
.mouseleave( () => {
$(this).removeClass("hover");
}
);
Example 2: on mouse not over jquiery
$( "#other" ).click(function() {
$( "#outer" ).mouseleave();
});
Example 3: jquery hover and hover out
$( selector ).mouseenter( handlerIn ).mouseleave( handlerOut );