I am using regular expression to check number of digits after decimal.
This is working fine when it is used for two or three digits, for example \\d{2}
\\d{2}
This might be useful : 10+ Useful JavaScript Regular Expression Functions to improve your web applications efficiency