teblack
Programmer
- Apr 30, 2004
- 45
I have a text area that I would like to only allow a certain number of lines and characters per line.
ie. 2 lines of text input, each line can contain up to 80 characters. I seems to be able to get the 80 characters, but can not seem to only limit the box to 2 lines. Once I keeping typing I'm allowed to key values on lines 3 & 4 and so on, which I don't want. Any suggestions.
ie. 2 lines of text input, each line can contain up to 80 characters. I seems to be able to get the 80 characters, but can not seem to only limit the box to 2 lines. Once I keeping typing I'm allowed to key values on lines 3 & 4 and so on, which I don't want. Any suggestions.
Code:
<style type="text/css">
textarea {
overflow:auto;
}
</style>
<form METHOD="post" ACTION="default.asp" name="FormsQuestion_Form">
<p>
Please tell us why you no longer wish to receive these forms electronically (optional):
<p>
<textarea name="formsreason" cols="80" rows="2"></textarea>
[\code]
Thanks in advance for the help.
TBlack -