How do I unbind “hover” in jQuery?

前端 未结 8 2016
醉话见心
醉话见心 2020-11-28 02:54

How do I unbind \"hover\" in jQuery?

This does not work:

$(this).unbind(\'hover\');
8条回答
  •  盖世英雄少女心
    2020-11-28 03:37

    unbind() doesn't work with hardcoded inline events.

    So, for example, if you want to unbind the mouseover event from

    , I found that $('#some_div').attr('onmouseover','') is a quick and dirty way to achieve it.

提交回复
热议问题