jquery hover function

71

jquery on hover event -

$(".selector").on({
    mouseenter: function () {
        //stuff to do on mouse enter
    },
    mouseleave: function () {
        //stuff to do on mouse leave
    }
});

jquery hover and hover out -

$( selector ).mouseenter( handlerIn ).mouseleave( handlerOut );

Comments

Submit
0 Comments