How to make display a semicolon with input type number?
2 answers
You can use the French locale lang="fr" , which uses a comma for the decimal separator.
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Input test</title> <script> function init(){ document.getElementById('in1').value = 3.14; } </script> </head> <body onload="init()"> <input id="in1" lang="fr" type="number"> </body> </html> It works fine with Firefox 39.0:
but unfortunately it is not yet implemented in Chrome 44.
+1
