개발
Radio disabled Property
양태호
2013. 10. 31. 13:29
Radio disabled Property
Examples
Example 1
Disable a radio button:
<script>
document.getElementById("cats").disabled=true;
</script>
document.getElementById("cats").disabled=true;
</script>
The result will be:
Try it yourself »
Definition and Usage
The disabled property sets or returns whether a radio button is disabled, or not.
A disabled element is unusable and un-clickable. Disabled elements are usually rendered in gray by default in browsers.
Syntax
Set the disabled property:
element.disabled=true|false
Return the disabled property:
element.disabled
Browser Support
The disabled property is supported in all major browsers.