HTML DOM disabled Property
Complete Radio Object Reference
Definition and Usage
The disabled property sets or returns whether or not a radio button should be
disabled.
Syntax
radioObject.disabled=true|false
|
Example
The following example disables a radio button:
<html>
<head>
<script type="text/javascript">
function disable()
{
document.getElementById("gnome").disabled=true
}
</script>
</head>
<body>
<form>
Human: <input id="human" type="radio" name="creature"
value="Human" />
<br />
Animal: <input id="animal" type="radio" name="creature"
value="Animal" />
<br />
Gnome: <input id="gnome" type="radio" name="creature"
value="Gnome" />
<br /><br />
<input type="button" onclick="disable()"
value="Disable choice" />
</form>
</body>
</html>
|
Try-It-Yourself Demos
Disable
a radio button
Complete Radio Object Reference
|
|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|