why thank you michael.

what do you do? put an onKeyUp or something like that?

tw

-----Original Message-----
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 06, 2004 2:58 PM
To: CF-Talk
Subject: RE: maxlength for textarea

No dice Tony...

This is a function I use to put a counter above each text area on some of
our internal apps..

function txtCounter(field,cntfield,maxlimit) {
if (field.getValue().length > maxlimit)
{
field.setValue(field.getValue().substring(0, maxlimit));
cntfield.setValue('0');
}
else
cntfield.setValue(maxlimit - field.getValue().length); }

Mike



> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 06, 2004 2:46 PM
> To: CF-Talk
> Subject: maxlength for textarea
>
> hey there.
>
> is there a parameter of a textarea that enables what maxlength does
> for input type elements?
>
> thanks
>
> ...tony
>
> tony weeg
> senior web applications architect
> navtrak, inc.
> www.navtrak.net
> [EMAIL PROTECTED]
> 410.548.2337
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to