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!

Lock TextArea

Status
Not open for further replies.

tiramisu01

Programmer
Feb 11, 2000
19
SG
<br>
Ello people,<br>
<br>
does anyone knows how to set or make the TextArea non-editable?<br>
<br>
Thanks. 8)
 
Sure, thats easy, just use:<br>
<br>
&lt;textarea readonly&gt;&lt;/textarea&gt;<br>
<br>
theEclipse<br>
robacarp.webjump.com
 
*gasp* Thanx. I wonder why I can't find that attribute for text area on net!
 
That attribute is only valid for Internet Explorer. Better to use Javascript to do something like this:<br>
<br>
&lt;textarea onfocus=this.blur()&gt;&lt;/textarea&gt;
 
<br>
Cool stuff. I agree that would be a better alternative. But ALL suggestions are good!
 
You are right, rycamor. I did not realize that it was a browser-specific attribute, but after testing, you are correct.<br>
<br>
<p>theEclipse<br><a href=mailto: > </a><br><a href=robacarp.webjump.com>robacarp.webjump.com</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top