Form Validation in html
A good tip with form validation not working with onSubmit function on form element.
November 19, 2019 •
Code 💻
1 min read
When there is onSubmit="someFunction(this)"
in the the form element:
<form onSubmit="someFunction(this)">
<!-- Some Code -->
</form>
The form validation doesn't seem to work properly. However, once the onSubmit="someFunction(this)"
is gone, the form validation works again.