Solved

Restrict Form Text Area to a max 200 charcters?

Posted on 2009-05-17
4
377 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
push Book Today button to right 10 33
CORS Error from Chrome, but FireFox is OK 1 75
Html input text color the frame line 2 19
Autocomplete with Jquery Question 2 19
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.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
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…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

791 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