Latest web development tutorials

HTML DOM Radio disabled property

Radio Object Reference Radio Objects

Examples

Example 1

Disable checkbox button:

<script>

document.getElementById("cats").disabled=true;

</script>

Output:


try it"


Definition and Usage

disabled property sets or returns whether to disable radio button.

Disabled elements are neither available, nor click. You can set the disabled property until meet certain other conditions are met (such as selecting a checkbox, etc.).

grammar

Set the disabled property:

element .disabled=true|false

Return the disabled property:

element .disabled


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support disabled property


Radio Object Reference Radio Objects