By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,949 Members | 1,077 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,949 IT Pros & Developers. It's quick & easy.

Max # of letters in an input form

kestrel
Expert 100+
P: 1,071
what do i use to only let a user type a certain # on letters in an input field?
Sep 23 '06 #1
Share this Question
Share on Google+
1 Reply


ronverdonk
Expert 2.5K+
P: 4,258
Use the maxlength attribute of the <input tag. This example accepts 10 characters in the input field.
[HTML]<input name="a" maxlength="10" />[/HTML]

Ronald :cool:
Sep 23 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.