html5 oninvalid doesn't work after fixed the input field

前端 未结 5 1641
故里飘歌
故里飘歌 2020-12-06 01:08

I have this input code in my form:



        
5条回答
  •  余生分开走
    2020-12-06 02:13

    For me only oninvalid="this.setCustomValidity(this.willValidate ? '' :'You must choose the account type from the list')" works. There are lots of issues while using it with IE.

提交回复
热议问题