textarea's “required” attribute doesn't work even though the value is empty

前端 未结 6 1568
不知归路
不知归路 2020-12-29 21:21

I created a simple page with list box and text area with conditions that all should be required.

List box are working fine, but textarea box doesn\'t tell that the f

6条回答
  •  梦谈多话
    2020-12-29 21:57

    And probaly form has novalidate attribute. Any form-element validation attributes (like required or regexp) with form novalidate attribute will ignore.

提交回复
热议问题