I'm having problems with .live()and confirm. It multiplies confirmation dialogs with every click. I know about .die(), but I can't get it to work.
$("button.del").live("click", function(){
if(!confirm("Are you sure?")) {
}
});
I tried $("button.del").die("click");right after the above code, and in this case confim doesn't even work.
source
share