thanks Dave... just what I needed!

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:owner-witango-talk@;witango.com]On Behalf Of David Shelley
Sent: Thursday, October 31, 2002 11:16 AM
To: Multiple recipients of list witango-talk
Subject: RE: Witango-Talk: OT: Javascript assistance needed


Tom,

I use a function called limitLength(). Like this:

function limitLength(field,maxLength) {
        if (field.value.length > maxLength)
        {
                field.value = field.value.substring(0,maxLength);
                alert('This field will only hold '+maxLength+' characters.');
        }
}

<textarea name="Title" rows=3 cols=50
onKeyUp="limitLength(this,255)"></textarea>

Dave Shelley

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:owner-witango-talk@;witango.com]On Behalf Of Tom Ferguson
Sent: Thursday, October 31, 2002 11:05 AM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: OT: Javascript assistance needed


Does one of the JavaScript gurus have an example of limiting a <textarea>
tag to a certain number of allowable characters as input?

Any assistance would be welcome.

TIA

Thomas Ferguson
Vice President
Enroll DR, LLC
[EMAIL PROTECTED]

www.enrolldr.com


________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body
________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to