HTML5 form required attribute. Set custom validation message?

前端 未结 14 1691
你的背包
你的背包 2020-11-22 01:26

I\'ve got the following HTML5 form: http://jsfiddle.net/nfgfP/

14条回答
  •  走了就别回头了
    2020-11-22 01:51

    The solution for preventing Google Chrome error messages on input each symbol:

    Click the 'Submit' button with empty input field and you will see the custom error message. Then put "-" sign in the same input field.



提交回复
热议问题