JavaScript validation for numeric values
<p>I want one validation in JavaScript so that a text boxt should allow to enter only numeric values in the following format:</p>

<pre><code>4.25
4.50
2.00
</code></pre>

<p>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.</p>
