Is it possible to allow users to input both decimal dot and thousands separator in an input type="number"
field using AngularJS model? I want the numeric value entered by the user to appear like this: 3,597.50
. Additionally, I need to verify if the entered data is a number or a string, which can be done using isNaN().
I attempted to use someNumber.toFixed(2)
, where someNumber
is a variable containing the user-entered number, but it was unsuccessful.