I want one validation in JavaScript so that a text boxt should allow to enter only numeric values in the following format:
4.25
4.50
2.00
and so on. There should be always 2 digits after the decimal point and 1 digit before the decimal point. If the user enters 2, it should display as 2.00. This is my requirement.