Sunil Kulkarni wrote:
I need to validate my TextArea as follows:
1) IT SHOULD ALLOW FOR ONLY 5 COLUMNS
2) IT SHOULD ALLOW ONLY 65 CHARACTERS PER ROW
I need some kind of a JS validation for the same. I have tried using hard wrap
but that doesnt help completely.
Any help in this matter would be very much appreciated!
Thanks!
S Kulkarni
What's wrong with:
<form action="">
<p><textarea name="TextareaName" rows="5" cols="65"
wrap="soft"></textarea></p>
</form>
The string submitted can later be rendered within a textarea with the
same (or other) cols and rows attribute values.
On the wrap attribute, MSDN
http://msdn.microsoft.com/workshop/a...rties/wrap.asp
says:
soft: Default. Text is displayed with wordwrapping and submitted without
carriage returns and line feeds.
hard: Text is displayed with wordwrapping and submitted with soft
returns and line feeds.
off: Wordwrapping is disabled. The lines appear exactly as the user
types them.
DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html