Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Radio disabled Property

Radio disabled Property

Radio Object Reference Radio object


Example

Example 1

Disable the radio button:

Output result:

Try it »


Definition and Usage

The disabled property sets or returns whether the radio button is disabled.

A disabled element is neither usable nor clickable. The disabled attribute can be set until some other condition is met (such as selecting a checkbox, etc.).

Syntax

Set the disabled property:

element

.disabled=true|false

Return the disabled property:

element

.disabled


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the disabled attribute


Radio Object Reference Radio object