CSS3 :enabledSelectors

Complete CSS Selector Reference Manual

Example

Set the background color of all enabled input elements with type="text":

input[type="text"]:enabled
{
background:#ffff00;
}

Try it Yourself »

Definition and Usage

The :enabled selector matches every enabled element (mainly used for form elements).


Browser Support

The numbers in the table indicate the first browser version that supports the property.

Selectors
:enabled 4.0 9.0 3.5 3.2 9.6

Examples

More Examples


Example

Set the background color for all enabled input elements:

input:enabled
{
background:#ffff00;
}

Try it Yourself »


Complete CSS Selector Reference Manual

other extensions