How to change html5 pattern error messages for email

情到浓时终转凉″ 提交于 2019-12-06 02:44:14

The custom error message comes from the element's title, or by using setCustomValidity, as you said. But message like "Please include an '@' in the email address" come from the type="email" attribute. There are similar error messages when there is a required attribute, for example. So these messages come from the browser, and will be in the user's browser language. I wouldn't worry too much about this, as the browser will already be in a language the user understands, and as they are native to the browser, users will get used to these standard error messages.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!