Javascript Reference
Categories: radio

javascript radio disabled

@July 3, 2008, 5 a.m.
disabled Firefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

 

Read/Write  

Specifies whether the radio element is available for user interaction. When set to true, the element cannot receive focus or be modified by the user, and it typically appears grayed out on the page. This property is available for all HTML element objects in IE 5.5 for Windows and later. For IE 4 and IE 5, it applies only to form controls, while Netscape 6 and later recognize the property for form controls and the style element object. A disabled form control's name/value pair is not submitted with its form.

 
Example
 
document.getElementById("myradio").disabled = true;
 
Value

Boolean value: true | false.

 
Default

false


Powered by Linode.