HTML5 validation when the input type is not “submit”

后端 未结 9 1325
醉酒成梦
醉酒成梦 2020-11-29 01:42

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

9条回答
提交回复
热议问题