Localization of input type number

后端 未结 4 1679
予麋鹿
予麋鹿 2020-11-28 10:37

I work on a web application running in Chrome, where I have inputs with type number. In my locale commas are used for decimal numbers and a space is used for th

4条回答
  •  渐次进展
    2020-11-28 10:47

    Unfortunately these characters are not allowed in the

    See the specs here : http://w3c.github.io/html-reference/datatypes.html#common.data.float-def

    Is this the format you want ? http://jsfiddle.net/S8rqY/

提交回复
热议问题