ryanzec
ryanzec

Reputation: 28040

Unbind event that was bound with .live() jQuery

I have the following 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?

Upvotes: 3

Views: 337

Answers (1)

ryanzec
ryanzec

Reputation: 28040

I see I need to use .die().

Upvotes: 5

Related Questions