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: