You can test the length, then halt processing if it's too long.
var maxLength=500;
function validateTextarea(form){
if (form.<textareaname>.value.length > maxLength){
alert('Your input is ' + form.<textareaname>.value.length +
' characters. Please make it less than ' + maxLength + ' characters.');
return false;
}
return true;
}
-----Original Message-----
From: Robert Everland [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 02, 2000 12:49 PM
To: CF-Talk
Cc: '[EMAIL PROTECTED]'
Subject: maxlength on text area
Is there a way to set a maxlength on a textarea using javascript or any
other method.
Robert Everland III
Web Developer
Dixon Ticonderoga
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.