Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

disabled
Type: boolean
Gets and sets the value of the disabled attribute.
Image:XUL_ref_attr_disabled.png
<!-- Checkbox enables/disables the button -->
<checkbox label="Enable button" 
    oncommand="document.getElementById('buttRemove').disabled = ! this.checked"/>
<button id="buttRemove" label="Remove All" disabled="true"/>

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, Enn, wtf, madarche, Sevenspade, another_sam, Marsf, Mgjbot, BenoitL, Dria
 Last updated by: Sheppy,