hope this will help..
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
maxLen = 170; // max number of characters allowed
function checkMaxInput(form) {
if (form.abstract1.value.length > maxLen) // if too long.... trim it!
form.abstract1.value = form.abstract1.value.substring(0, maxLen);
// otherwise, update 'characters left' counter
else form.remLen.value = maxLen - form.abstract1.value.length;
}
// End -->
</script>
<textarea cols="40" rows="3" name="abstract1"
onKeyDown="checkMaxInput(this.form)"
onKeyUp="checkMaxInput(this.form)"></textarea>
<input readonly type=text name=remLen size=3 maxlength=3
value="170"> characters left
cheers
>>> [EMAIL PROTECTED] 01/30/03 12:05pm >>>
Fellow CFer's,
I have seem this before but has someone got some JavaScript code
to
check the number of characters in a text area.
Brian Knott
Senior Database Developer
QANTM Studio
Phone (07) 3017 4331
Mobile 0407 572127
Email [EMAIL PROTECTED]
Website < http://www.qantm.com.au/ <http://www.qantm.com.au/> >
This email is sent commercial-in-confidence. The contents of this email
and
attachments are intended for the addressee only and may be subject to
the
laws of copyright, confidential information and privacy. You may only
forward it on or otherwise copy or use it with the consent of the
sender.
---
You are currently subscribed to cfaussie as:
[EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/
Brian Gilbert
Position: Web Architect
E-mail: [EMAIL PROTECTED]
Ph: +61 (0)3 9881 5459
Fx: +61 (0)3 9802 0142
Personal Website: http://www.realityloop.com/
---
You are currently subscribed to cfaussie as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MX Downunder AsiaPac DevCon - http://mxdu.com/