You can do it in Javascript
function lencheck(obj_value, len){
// Returns true if value is less than or equal to length,
// otherwise returns false.
if (obj_value.length <= len){
return true;
} else {
over = obj_value.length - len;
alert("This field can only contain " +len+ " characters. You have "
+over+
" extra characters.");
return false;
}
-----Original Message-----
From: bajaria aslam [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 04, 2001 10:26 AM
To: CF-Talk
Subject: Can we limit the text in textarea
Is there a way to limit the number of characters
someone can type in in a textarea input box?
Thanks
AB
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists