Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #form #submit
ADD COMMENT
Topic
Name
5+9 =