Override html5 validation

前端 未结 5 1796
野趣味
野趣味 2020-12-18 04:08

I\'m working on a simple login form, with two fields:

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-18 04:31

    Maybe you can use javascript to transform all "required" attributes into "data-required" for you can handle them with javascript and to override html5 form validation with your own handler

提交回复
热议问题