Easy Tutorial
❮ Prop Submit Value Prop Li Value ❯

Checkbox disabled Attribute


Example

Example 1

Disable checkbox:

Output result:


Definition and Usage

The disabled attribute sets or returns whether the checkbox is disabled.

A disabled element is unusable and un-clickable. Disabled elements are typically rendered in gray by browsers.

Syntax

Set the disabled attribute:

Return the disabled attribute:


Browser Support

All major browsers support the disabled attribute.

❮ Prop Submit Value Prop Li Value ❯