HTML5 input box with type=“number” does not accept comma in Chrome browser

前端 未结 3 1986
故里飘歌
故里飘歌 2020-12-03 07:15

I am using a HTML5 input box with type=\"number\". Regarding to some documentations, it should be possible to enter a number with comma (not with period) if I a

3条回答
  •  孤街浪徒
    2020-12-03 08:03

    As of now (30/08/2017), Antoine Thiry's answer seems to be no longer valid in Chrome (my version is 60.0.3112.113). Unfortunately I don't have any other suggestion, other than simulating type="number" with javascript.

提交回复
热议问题