Text Area Limits

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

Text Area Limits

Post by icesolid »

How do I limit the size of a textarea if possible?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

HTML 4.01 and XHTML 1.0 do not list any length attribute limiter..
icesolid
Forum Regular
Posts: 502
Joined: Mon May 06, 2002 9:36 pm
Location: Buffalo, NY

So Iv'e Noticed

Post by icesolid »

Ok well thanks anyway.
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

though you can use PHP to check the length...
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

Post by Bill H »

Check hotscripts and some of the javascript sites. There are some javascript routines that can be used to limit input on textareas. Some of them can cause browser crashes under some circumstances, but some work quite well. Just have to try them and see which ones work for you.
Post Reply