5

I use input pattern html5 validation. My computer default language is Turkish, so I get the warning message in Turkish. Is there any way to change the warning message language from the codes so every visitor gets the message in language I select?

http://jsfiddle.net/xhqsB/104/

<form>
  <input type="text" pattern=".{5,10}">
      <input type="submit" value="Check"></input>
</form>

enter image description here

4

2 回答 2

4

你想要的方式不存在。没有用于更改输入语言的输入模式。强制改变使用系统语言的标准行为的唯一方法是覆盖它。

按照上面评论中的链接,您将看到一个如何覆盖它的示例。

于 2013-08-12T12:27:41.840 回答
0

您必须按照本文中的说明覆盖验证消息: HTML5 表单必需属性。设置自定义验证消息?

于 2013-08-12T12:22:30.373 回答