开发者

How to disable all events of a label inside a DIV

开发者 https://www.devze.com 2023-03-16 12:36 出处:网络
Hi i am using this Code to unbind all the events attached to all lables inside a DIV. But sadly it is not working.. Below is my code.

Hi i am using this Code to unbind all the events attached to all lables inside a DIV.

But sadly it is not working.. Below is my code.

 $('#xxxxx开发者_Go百科-hidden label').die('click');

Please someone help me.


die() only removes handlers that were added using live().

Try unbind() instead:

$('#xxxxx-hidden label').unbind('click');

If you really want to remove all the event handlers, you should call unbind() without arguments:

$('#xxxxx-hidden label').unbind();
0

精彩评论

暂无评论...
验证码 换一张
取 消