110
rated 0 times
[
112]
[
2]
/ answers: 1 / hits: 44815
/ 11 Years ago, thu, june 13, 2013, 12:00:00
Allow only 2 decimal points when entering number to a textbox using jquery.
Please suggest any regex to allow only two decimal in textbox.
I have tried the following code.
$(#amountId).val().replace (/(.dd)d+|([d.]*)[^d.]/, '$1$2');
More From » jquery