ExampleSet a background color for all disabled input elements of type="text":
Try it yourself » |
The :disabled selector matches every disabled element (mostly used on form elements).
The :disabled selector is supported in all major browsers, except Internet Explorer.
![]() |
Try it Yourself - Examples |
ExampleSet a background color for all disabled input elements:
Try it yourself » |