Hi,
I'm having problems with .live()
and confirm
. It's multiplying the confirm dialogs for every click. I know about .die()
but i can't get it to work.
$("button.del").live("click", function(){
if(!confirm("Are you sure?")) {
//close
}
});
I've tried $("button.del").die("click");
right after the above code, in which case the confim doesn't even fire.