Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form field max size

Status
Not open for further replies.

seanwest

Technical User
Jan 23, 2003
17
US
how would i control the max size on:

<TEXTAREA Name=&quot;ad&quot; cols=&quot;50&quot; rows=6 wrap=&quot;display&quot;></textarea>

thanks for any help.
 
Try adding: maxlength=#

where # is the number. I'm not sure if that only works on single line input areas though.
 
Textarea does not have a maxlength attribute, so you'll need to add some javascript to count and limit the characters. If you do not want to write your own script, has a number of free scripts that limit text area.

Hope this helps.
 
The text area would automatically wrap the word when it got to the end of the box, wouldn't it? I haven't done this for a while so can't remember. Why do you need it to be a certain width?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top