Restrict Form Text Area to a max 200 charcters?

How do I restrict Form Text Area to a maximum of 200 charcters?
petewinterAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Answering4uAntConnect With a Mentor Commented:
Sorry my error, maxlength doesn't work on textarea.
Try the link below, it has a counter and also alerts are XX characters have been entered, this should acheive what you require

http://inmyexperience.com/archives/000327.shtml
0
 
Answering4uAntCommented:
maxlength = 200
0
 
petewinterAuthor Commented:
Does that mean the code should like this: <textarea name="why" cols="45" rows="5" id="why" maxlength="200"></textarea>

As I can still type more than 200 characters?
0
 
petewinterAuthor Commented:
Many Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.