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 do I lock text boxes? 1

Status
Not open for further replies.

taval

Programmer
Jul 19, 2000
192
GB
I was just wondering how would I be able to lock a textbox so a value could not be changed from it.

Thanks.
 
For some strange reason nobody, can take such hard step as looking to FAQ...
But, in FAQ of this forum this question is numbered as ONE!!!
 
You use the readonly attribute. e.g.

<input maxlength=14 size=14 name=Blah value=&quot;blahblahblahbl&quot; readonly>

Hope this helps,

Cheers
 
atchett, this is ie4+ only ! it won't work in ns ...
and what's more, as DubnerM said, it's all in the faq
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top