Answers for "confirm before submit form jquery"

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
1

form confirm before submit

<form 
    method="post"
    onSubmit="return confirm('Are you sure you wish to delete?');">
...
</form>
Posted by: Guest on May-19-2020

Code answers related to "confirm before submit form jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language