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!

Making textarea unchangable 1

Status
Not open for further replies.

bretttt

Programmer
Jul 23, 2002
74
US
How can i make an textareas value permanant? thanks.
 
<textarea contenteditable="false">...</textarea>

Mayhaps MSIE only; I didn't check. Hope it works for you though :)

----------
I'm willing to trade custom scripts for... [see profile]
 
<textarea name="textarea" disabled>I am a disabled textbox</textarea>

Listen All I ask is that You close out a Post You Started!!!!
 
A "closed Out" post would be a post where a star is awarded to the person(s) that provided you with a solution/answer to the problem posted.


This should also work:
<textarea name="textarea" READONLY>I am a disabled textbox</textarea>


buffalo.gif height="65" width="35"

 
its my signature -- it means that if a question goes unanswered simply state that none of the solutions worked -- or if they did then simply state that your question was answered.

Listen All I ask is that You close out a Post You Started!!!!
 
And about using disabled and readonly. According to XML-grammatik best way is:

disabled="disabled" or readonly="readonly
 
Guys,

No signature should include any reference to voting, stars, or marking posts as helpful. Doing so is cause for membership termination.

It's on your profile for a reason.

Wullie


The pessimist complains about the wind. The optimist expects it to change. The leader adjusts the sails. - John Maxwell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top