Override html5 validation

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

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

5条回答
  •  不知归路
    2020-12-18 04:52

    Another option if you are using jQuery for example is to remove the attribute.

    $("input[required],select[required],textarea[required]").removeAttr('required');
    

提交回复
热议问题