using on() with hover - jQuery

后端 未结 7 1217
感情败类
感情败类 2021-01-26 05:51

This is what I have:

$(\'#blah\').hover(function(){
    $(\'etc\').show();
}, function(){
    $(\'etc\').hide();
});

This works just fine, now

7条回答
  •  旧时难觅i
    2021-01-26 05:56

    use

     jQuery.on("hover","#blah", function..)
    

    Or you can use toggle feature of jQuery too

提交回复
热议问题