开发者

How to disable all events of a label inside a DIV

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜