I have an input submit, after attaching an onclick handler on it, what's the standard way to prevent a post request to "form action=xxx" url? Is it "return false", or "e.preventDefault", or "e.stopPropogation"?
just call preventDefault() like this
$("#myform").submit(function(event){
event.preventDefault();
// DO SOMETHING
});
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments