I am using an HTML5 input field with type="number" . For some documents, you can enter a semicolon (not a period) if I also use the lang="" attribute. It works in Firefox, but not in Chrome (does not accept a comma). How can I get Chrome to accept a comma in an input field. My problem is that our German users expect that they can enter a comma instead of a period there.
https://jsfiddle.net/byte2702/y3Lpfw7m/
Please enter a number with comma: <br/> <input id="num" type="number" step="any" lang="de" pattern="-?[0-9]+[\,.]*[0-9]+" />
input html5 numbers comma
Jana Weschenfelder Feb 10 '16 at 12:20 2016-02-10 12:20
source share