I want to validate text filed witch contain only float value up two decimal places using javascript
<p>I want to validate text filed witch contain only float value up two decimal places. and not give any round of functionality 
for example if I enter 19.999 then result will be 19.99 not 20.00</p>

<p>and  if I enter 19.7 then result will be 19.70
if I enter 19 then result will be 19.00</p>

<p>toFixed function is not working in my code.</p>

<p>Thanks</p>
