![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How to make a html control (text box, checkbox, etc...) be read only? |
|
For example, in the following text box code, value "Joe" is in text box, but user still able to edit it. I don't want user able to edit it. input type="TEXT" name="username" value="Joe" |
#3
| |||
| |||
|
|
jrefactors (AT) hotmail (DOT) com (Matt) wrote: input type="TEXT" name="username" value="Joe" So why do you have the field there in the first place? It's safer to use input type="hidden" name="username" value="Joe" Username: Joe partly because not quite all browsers support the readonly attribute, partly because this makes it much clearer that the user is not expected to change the username. |
![]() |
| Thread Tools | |
| Display Modes | |
| |