Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

enter 1 digit max number field

<input type="text" maxlength="1" oninput="this.value=this.value.replace(/[^0-9]/g,'');" />
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #enter #digit #max #number #field
ADD COMMENT
Topic
Name
8+7 =