On 4/19/05, Srilatha Salla <[EMAIL PROTECTED]> wrote:
> Hi,
> Can we restrict the length of textarea with any of the attributes?
> I have textarea that should not accept more than 250 characters, so I want to 
> know if I can restrict the length with textarea attibutes.

See: 
  http://struts.apache.org/userGuide/struts-html.html#textarea
There is no "maxlength" attribute simply because this one:
  http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.7
does not have it too.

But I think that you can try to use client-side validator, see:
  http://www.manning-source.com/books/husted/husted_ch12.pdf

Apparently, you would need to hook validator on onChange() or
onKeyPress() event.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to