Best way to remove an event handler in jQuery?

前端 未结 20 2321
庸人自扰
庸人自扰 2020-11-21 11:38

I have an input type=\"image\". This acts like the cell notes in Microsoft Excel. If someone enters a number into the text box that this input-image

20条回答
  •  孤街浪徒
    2020-11-21 11:39

    Updated for 2014

    Using the latest version of jQuery, you're now able to unbind all events on a namespace by simply doing $( "#foo" ).off( ".myNamespace" );

提交回复
热议问题