Is it possible to use jQuery .on and hover?

前端 未结 10 785
失恋的感觉
失恋的感觉 2020-11-22 11:03

I have a

    that is populated with javascript after the initial page load. I\'m currently using .bind with mouseover and
10条回答
  •  感情败类
    2020-11-22 11:27

    jQuery hover function gives mouseover and mouseout functionality.

    $(selector).hover(inFunction,outFunction);

    $(".item-image").hover(function () {
        // mouseover event codes...
    }, function () {
        // mouseout event codes...
    });
    

    Source: http://www.w3schools.com/jquery/event_hover.asp

提交回复
热议问题