RES: [Javascript] Maxlength on textarea in XHTML
Flavio Gomes
flavio at economisa.com.br
Thu Apr 14 14:20:48 CDT 2005
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
>
>
>
More information about the Javascript
mailing list