开发者

Unbind event that was bound with .live() jQuery

开发者 https://www.devze.com 2023-01-06 00:42 出处:网络
I have the foll开发者_开发问答owing code: $(\'#form1\').live(\'submit.check\', function() { //code...

I have the foll开发者_开发问答owing code:

$('#form1').live('submit.check', function()
{
    //code...
});

Now when I try the following:

$('#form1').unbind('submit.check');

that event it still bound to the form. Is it not possible to unbind an event the that used .live() to bind it?


I see I need to use .die().

0

精彩评论

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