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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set the maximal lenght ? 1

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi all,

for a input i know that we can specify the max lenght this way :
<input name='emp_cost' size='11' maxlength='10'>

but for a TEXTAREA like this :
<TEXTAREA cols=26 name=experience rows=3>

is it possible to limit the number of characters ??
what is the option ?

thanks

Best regards,
Elise
 
Hi tyris!
You may write a function, called when onChange event of textarea occures, that deletes last added character if total string lenght = your max value.
It doesn't have to be complicated.

Andrew | starway@mail.com
 
yes you maay be right, thanks good idea :eek:) Best regards,
Elise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top