Can I cancel the submit form if I click Cancel?
$("#button").click(function(){
confirm ("Are you ready?");
$("#form")[0].submit();
});
Now any (after OK and Cancel) forms of time are sent.
I try that this should work logically.
$("#button").click(function(){
confirm ($("#form")[0].submit(););
});
source
share