Disable jquery .live () related event

I have the following code:

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

Now when I try to do the following:

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

this event is still associated with the form. Can't untie the event that .live () used to bind it?

+3
source share
1 answer

I see that I need to use .die ().

+5
source

Source: https://habr.com/ru/post/1753761/


All Articles