CSS Pseudo-class :disabled
This selector selects UI-elements, that don't accept user inputs because of language-attributes or other restrictions. For example <input type="text" disabled>
in HTML5. Note that :disabled
doesn't work for elements which are invisible because of CSS styles.
Examples
Compatibility
Chrome | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|
Any | Any | 9+ | Any | Any |