Easy Tutorial
❮ Prop Element Classlist Event Onstalled ❯

Radio disabled Attribute


Example

Example 1

Disable a radio button:

Output result:


Definition and Usage

The disabled attribute sets or returns whether the radio button is disabled or not.

A disabled element is unusable and un-clickable. The disabled attribute can be set until some other condition is met (such as selecting a checkbox, etc.).

Syntax

Set the disabled property:

Return the disabled property:


Browser Support

All major browsers support the disabled attribute.

❮ Prop Element Classlist Event Onstalled ❯