Number Validation | Only Numbers allowed 0-9
It will allow only the numbers to be typed.
The main reason for this validation is to only allow the number to be entered in the textbox between 0-9. Apart from this user cannot enter the character. It will restrict in the beginning.
Call this on on the keypress event.
<input type="text" id="inputText" name="inputText" onkeypress="return isNumber(event)">