Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit the number of characters in a textarea

Status
Not open for further replies.

rmittal

Programmer
Aug 8, 2000
8
US
Hi,
In a textarea I want to limit the number of characters to be 368. After 369 characters the user shouls not be able to type. Also, the initial value in a textarea should be '**' and the user should start writing after these 2 characters. So then the characters the user can type will be 368+"**". How do i do this??
 
<input type=textarea maxlength=&quot;370&quot; value=&quot;**&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top