I have searched for some implementation (with regex in JS or another way in JS) that allows me to validate if the value of an input is a number, besides allowing (if the value to validate) has the decimal point or separator of thousands (comma).
For example
allowed values:
123
1235684421545.56
123,456,789,523.12
123,456
123568
123589,456
Values not allowed:
12,5669
125.236,56
125,18
Thanks
Aucun commentaire:
Enregistrer un commentaire