Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

input number maxlength html

<input name="var"
    oninput="javascript: if (this.value.length > this.maxLength) this.value = this.value.slice(0, this.maxLength);"
    type = "number"
    maxlength = "6"
 />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #input #number #maxlength #html
ADD COMMENT
Topic
Name
5+7 =