Answers for "how to stop the form submit in javascript"

1

js stop form submit

<button type="submit" onclick="submitButtonClick(event)">Submit</button>
<script>
function submitButtonClick(event) {
		event.preventDefault();
		//other stuff you want to do instead...
} 
</script>
Posted by: Guest on July-27-2020
0

js stop submit

event.preventDefault();
Posted by: Guest on October-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language