|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
disabling checkboxes
Is there any way to make a checkbox readonly? I can use the disable property but the checkbox is grayed out.
Thanks in advance for your help. |
|
#2
|
||||
|
||||
|
Like this
Code:
<input type="checkbox" name="checkbox" value="checkbox" readonly="Yes"> |
|
#3
|
|||
|
|||
|
or replace the checkbox form element to a graphic that represents the checkbox.
|
|
#4
|
||||
|
||||
|
for XHTML compliance you would use:
Code:
<input type="checkbox" id="checkbox" value="checkbox" readonly="readonly"> Similar other XHTML compliant attributes are: Code:
<dl compact="compact"> <input checked="checked" /> <input readonly="readonly" /> <input disabled="disabled" /> <option selected="selected" /> <frame noresize="noresize" />
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > disabling checkboxes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|