The input type textarea for a form has no maxlength attribute like a
textfield, as far as I know about the HTML spec.  I think you'll need to
write some javascript code to check for the length of the textarea when
submitting the form and if it exceeds a certain size, tell the user about it
and not submit the form.

Please don't reply to this email asking me for example javascript code,
because I don't have any :-).  Try this link below to get some ideas:
http://www.javascript.com/


-----Original Message-----
From: Stephen, Prem Kumar [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 1:36 PM
To: [EMAIL PROTECTED]
Subject: HTML Q: length validation in a textarea field


I am not sure if I can pose this Q here...

One of my jsps has a textarea field that should accept a max of 1024
characters.

I am able to set this in a text field using <checked maxlength="" >
 How do I do it using textarea?

TIA
Prem

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to