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();
精彩评论