Regular expression that match decimal places
I have this code to test if a value entered in a INPUT is numeric:
$("#price").val().match(/^\d+$/);
I need some help rewriting this function to allow decimal places either
with colon or dot meaning for example 230.00 is allowed and 230,00 is
allowed too. Also the decimal places could be four or less. Any?
No comments:
Post a Comment