I have a text box that should take only float value. It should not allow any other value. How to do it. I did this in HTML.
<h1>Weight</h1>
<input class="textbox" type="number" step="0.01" name="weight" id="weight"
maxlength="5"></input>
But, it is not Working? How to do it.