Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 09-24-2006, 11:52 AM   #1 (permalink)
 
True Techie

Join Date: Sep 2006

Posts: 168

kwokwai

Default Basic html

<textarea rows="2" cols="4" name="comments">

The above html tag will display users a textarea with 4 columns and 2 rows, but I found that I can enter as many words as I want into the textarea.

There is a restriction tag for input textbox, like maxlength="12".
But I don't know why I can't apply maxlength to restrict the number of words that are allowed to be entered in the textarea!
kwokwai is offline  
Old 09-25-2006, 12:11 AM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,410

office politics will become famous soon enough

Default

http://www.devguru.org/Technologies/..._textarea.html

looks like you would have to write some javascript validation to throw an error if the textarea contains too many characters.
office politics is offline  
Old 09-25-2006, 12:30 AM   #3 (permalink)
 
Monster Techie

Join Date: Apr 2005

Posts: 1,909

jcortes is on a distinguished road

Send a message via AIM to jcortes
Default

ya you will need to write some javascript to do that. there is no maxlength attribute on a textarea
__________________

AIM = jcortestechhelp
jcortes is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On