I just need a code which will make a text box visable but blocked so a person can not edit info in it!!
dpoes anyone know what this code will be?
Printable View
I just need a code which will make a text box visable but blocked so a person can not edit info in it!!
dpoes anyone know what this code will be?
add this as an attribute:
Code:dissabled="dissabled"
Quote:
Originally posted by Acidic
add this as an attribute:
Code:dissabled="dissabled"
how do i do that??
???Code:<input type="text" name="title" value="Test" size="94" style="border-style: solid; border-width: 1px" dissabled="dissabled">
well. I had a typo, it should have been:
disabled="disabled"
otherwise, yes.
or you could use the read only attribute
html:
:)Code:<textarea readonly=readonly>you cannot edit me</textarea>
Well it depends, the readonly attribute allows the user to focus the textbox (also with tab), which might confuse some users. So if you're disabling a certain textbox until another one is filled out for example, I think it's better to use disabled (so the user won't be confused).