Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

allow only numbers in textbox javascript onkeypress

<input class="text" name="Serial_Num" type="text" id="SrNo" size="2" maxlength="2" onkeypress="return digitKeyOnly(event)" />
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numbers #textbox #javascript #onkeypress
ADD COMMENT
Topic
Name
9+9 =