We know maxlength attribute use for maximum text limit in input box but in chrome maxlenght not work for number type. here is best solution for enter maximum length of character in type number. follow this code:
//check this code
<input id="age" name="age"
this.value = this.value.slice(0, this.maxLength);"
type = "number" maxlength = "2">
That’s it. If you really like this post. Please Comment or share for others help with social buttons. You can more read useful articles phpcoder.org.