RES: [Javascript] Maxlength on textarea in XHTML

Shawn Milo shawn.milo at gmail.com
Thu Apr 14 14:28:44 CDT 2005


Okay, point taken. I didn't know that. Either way, I believe that the
original post said something about "changing the max length on all
textareas at once." But I get the point about the maxlength problems
with textareas.

Shawn

On 4/14/05, Flavio Gomes <flavio at economisa.com.br> wrote:
> JS is needed because the maxlength property of a textarea doesnt
> exits/works by default like it does to "text" type "input" fields/tags.
> 
> --
> Flavio Gomes
> flavio at economisa.com.br
> 
> Shawn Milo wrote:
> 
> >I believe that this won't work, because it requires the maxLength to
> >be set in each textarea, which the OP, I believe, wanted to avoid.
> >
> >Anyway, if you set the maxLength in each textarea, then why bother adding JS?
> >(objTA.value.length>=objTA.maxLength) can never be true, except for
> >the = part, which would make no difference.
> >
> >Milo
> >
> >
> >
> 
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
> 


-- 
Voicemail any time at:
206-666-MILO



More information about the Javascript mailing list