Solved

Restrict Form Text Area to a max 200 charcters?

Posted on 2009-05-17
4
372 Views
Last Modified: 2012-06-27
How do I restrict Form Text Area to a maximum of 200 charcters?
0
Comment
Question by:petewinter
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:Answering4uAnt
ID: 24405639
maxlength = 200
0
 

Author Comment

by:petewinter
ID: 24405697
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
 
LVL 4

Accepted Solution

by:
Answering4uAnt earned 250 total points
ID: 24405708
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
 

Author Closing Comment

by:petewinter
ID: 31582337
Many Thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now