jquery before submit

Solutions on MaxInterview for jquery before submit by the best coders in the world

showing results for - "jquery before submit"
Juan Sebastián
17 Sep 2018
1$('#myform').submit(function(event) {
2 	event.preventDefault(); 			// Prevents the default submit
3  	// your code here (not asynchronous)
4	$(this).unbind('submit').submit(); 	// continue the submit unbind preventDefault
5})
Henry
08 Jun 2016
1$('#myform').submit(function() {
2  // your code here
3});
4