Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

angular maxlength directive input type number

//maxlength="10"
<input type="number" onKeyPress="if(this.value.length==10) return false;" />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #angular #maxlength #directive #input #type #number
ADD COMMENT
Topic
Name
8+4 =