|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Using CSS to make a textfield readonly
Hi,
Is it possible to control the the readonly of a textfield in a form with CSS, I tried to add readonly: true; but this does not work. my style is: .input2 { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; color: #000000; background-color: #ccddee; } Any help is welcome. Sanjay |
|
#2
|
|||
|
|||
|
As far as I know this is not possible with CSS but a similair workaround is probably possible with javascript.
I someone does know of a way I would be intersted too. |
|
#3
|
|||
|
|||
|
No way to do it in CSS, do it in the markup tag or by script.
|
|
#4
|
|||
|
|||
|
Shame, got a load of textfields that need readonly assigned.
Thanks, Sanjay |
|
#5
|
|||
|
|||
|
A cheap workaround would be to layer something over it.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Using CSS to make a textfield readonly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|