Prevent a form from submission using preventDefault() method Click on the submit button to submit the form.
Prevent a form from submission using preventDefault() method Click on the submit button to submit the form.