Javascript Reference
Categories: OBJECT

javascript OBJECT isDisabled

@June 19, 2008, 1:18 p.m.
isDisabled Firefox/Netscape/NN n/a IE 5.5(Win) Chrome/Safari/DOM n/a  

 

Read-only  

Specifies whether the current element is disabled. Reveals the actual disabled state as either explicitly set for the element or inherited from its ancestor tree.

 
Example
 
if (document.getElementById("elementID").isDisabled) {
		  // process the disabled element
		}
 
Value

Boolean value: true | false.

 
Default

false


Powered by Linode.