- Back to Home »
- HTML »
Posted by : Jebastin
Tuesday, 21 January 2014
By using the following attribute we can easily limit the number of characters allowed in form input text field.
maxlength="10"Adding this attribute to your control:
<input type="text"
id="txtPhone"
name="Phone"
maxlength="10" />