Answers for "jquery before submit form"

2

jquery before form submit

$('#myform').submit(function(event) {
 	event.preventDefault(); 			// Prevents the default submit
  	// your code here (not asynchronous)
	$(this).unbind('submit').submit(); 	// continue the submit unbind preventDefault
})
Posted by: Guest on June-26-2021
0

jquery before submit

$('#myform').submit(function() {
  // your code here
});
Posted by: Guest on July-03-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language