Complete TextBox Control Reference
The MaxLength property is used to set or return the maximum number of characters allowed in a TextBox control.
| Attribute | Description |
|---|---|
| num | A number specifying the maximum number of characters allowed in the text box |
The following example sets the max number of characters allowed in a TextBox control:
Complete TextBox Control Reference
Your message has been sent to W3Schools.