I\'m using HTML5 for validating fields. I\'m submitting the form using JavaScript on a button click. But the HTML5 validation doesn\'t work. It works only when then input ty
Either you can change the button type to submit
submit
Save
Or you can hide the submit button, keep another button with type="button" and have click event for that button
Hidden button Submit