:disabled pseudo-class
[This documentation is preliminary and is subject to change.]
Applies one or more styles to the form control element that is disabled.
![]() |
Syntax
selector :disabled {...}Parameters
- selector
-
A CSS simple selector
Standards information
- Selectors Level 3, Section 6.6.4.1
Remarks
The :disabled pseudo-class is a UI element states pseudo-class. UI element states pseudo-classes select UI elements (form controls such as radio buttons or check boxes) that are in a certain state—enabled, disabled, or selected (checked).
See also
- Reference
- :enabled
- :checked
- :indeterminate
Build date: 3/13/2012
Fieldsets should be targetable via :disabled selector
<fieldset>, <button> and <input> elements are included in the form.elements collection, as per the spec.
<fieldset>, <button> and <input> elements can be disabled, as per the spec.
BUT, in IE9, <fieldset> can't be targeted by the :disabled selector. Fix this.
<fieldset>, <button> and <input> elements can be disabled, as per the spec.
BUT, in IE9, <fieldset> can't be targeted by the :disabled selector. Fix this.
- 2/2/2012
- bigbossSNK
