Answers for "form on submit prevent default inline"

0

prevent form submission on onsubmit function calls

returning false here won't be executed and the form will be submitted either way. You should also call preventDefault to prevent the default form action for Ajax form submissions.

function mySubmitFunction(e) {
  e.preventDefault();
  someBug();
  return false;
}

Get more references : https://stackoverflow.com/questions/3350247/how-to-prevent-form-from-being-submitted
Posted by: Guest on July-09-2020
0

prevent from going to a function html click

$("#clickable a").click(function(e) {
   // Do something
   e.stopPropagation();
});
Posted by: Guest on July-03-2020

Code answers related to "form on submit prevent default inline"

Browse Popular Code Answers by Language