I am trying to unbind the click event for my code.
I have
$('#test').unbind('click'); //this won't work
$('#test').live('click', function(e){
alert('alert')
$(this).unbind(e) //this won't work
})
I am using jquery 1.63 and I need .live for my element.
Any idea? Thanks a lot!
You’re looking for the
die()method.