HTML5 validation when the input type is not “submit”

后端 未结 9 1317
醉酒成梦
醉酒成梦 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条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 02:07

    HTML5 Validation Work Only When button type will be submit

    change --

    
    

    To --

    
    

提交回复
热议问题