The regional setting in Windows 10 are set to use a point as the decimal symbol, but Firefox will only accept it as a number if I use a comma e.g. I want to format the currency value in terms of comma & decimal in expression. As we can see, a number input accepts characters. The spec itself makes this clear.. I want add comma between three digits three-digits when input data was number. Suprisingly enough, one of the most simple cases – the number type – still has some nasty issues if you need to use decimal values. However, it is possible to enter a comma separated value in the native number input, while the JQM slider input is rounding off to an integer like @akloster reported. Create Text Label Label1 . How to JavaScript number format comma? The default UI for number inputs looks something like this in all desktop browsers. This has been resolved since Chrome 15. It’s an very easy to do it: There is a built in function for this, You can use The toLocaleString() method to return a string with a language-sensitive representation of a number Or Regular Expressions. So I want to add comma for example 10,000,000,000, Other browsers do accept the point symbol. You can try the Text() function to format numbers using commas and periods. So the problem starts with lack of i18n in IE. OR. For example, it would be inappropriate for credit card numbers or US postal codes. How to format Input type currency with comma and decimal place 2. Chrome 12-14 used to auto-reformat numbers to include commas (e.g. I have this input type number: Of course the value is a number, how to force it to display a number with a comma? Question. elements can help simplify your work when building the user interface and logic for entering numbers into a form. It shows the phone keyboard, but I wanted it to show a keyboard with dots (or commas, in some languages). ... I’d like to implement the comma separated thousands when I input numbers inside INPUT tag or after input numbers. To illustrate; Create Text Input TextInput1 and set the Format property to TextFormat.Number . I’d like to add comma separated thousands to number input tag in hybrid app. The following is a screenshot of the Input sample from the SAPUI5 demo-kit on Microsoft Edge. I outputted a number but it is not showing with a comma. I searched but I didn't find a solution. ex: 1234.556 will be 1,234.56. HTML format number thousands separator. The type=number state is not appropriate for input that happens to only consist of numbers but isn’t strictly speaking a number. 2000000 turned into 2,000,000, which would be odd for social security or credit card numbers. These browsers accept non numeric characters even though the type of the input field is “Number”. And make it compatible with most HTML 5 browsers? Reply Quote 0. 5,5 It also did this on Windows 7. But this behavior is not supported in Microsoft Edge or Firefox browsers. The input type=”date” support in Google Chrome, which even features a handy inline calendar to select the desired day: neat! If you look at the native number input IE shows the value with a decimal point, while Chrome and Firefox show a comma here. According to W3C specifications, you need to also add the step attribute to support that. The Fix Minimal reproduction of the problem with instructions. I'm not sure how you can format input numbers while typing though - functions generally get applied to an existing value. When you create a number input with the proper type value, number, you get automatic validation that the entered text is a number, and usually a set of up and down buttons to step the value up and down. I'll input big number, for example , 10000000000. In web, i used keyup or blur event, but in hybrid it doesn;t work. What is the motivation / use case for changing the behavior?