I have a number input field like the following:
<input type="number">
Right now, if I write a number, it is displayed like this:
123.456
I would like to display it with a comma separator, but apparently nothing is working!
The desired result is:
123,456
I tried lang="nb"
, setting a pattern="\d+,\d+" type="text"
, but none worked.
Both Javascript and HTML answers are welcome!