Skip to content

CSS Selectors

Disabled

About

The :disabled pseudo-class matches elements that are disabled, like inputs or buttons.

Input

Normal inputs are not considered disabled.

Read-only Input

Read-only inputs are not considered disabled.

Disabled Inputs

Disabled inputs match the :disabled selector. In contrast to read-only inputs, they cannot receive focus.

Buttons

Buttons match if they have the disabled attribute.