HTML disabled attribute
Example
A disabled
Try it »
Browser support





Supported by Firefox, Opera, Chrome, and Safari 6
Definition and Usage
The disabled attribute is a boolean attribute.
The disabled attribute specifies that the
The disabled attribute can be set so that the user can only use the field after certain conditions are met (such as selecting a checkbox, etc.). JavaScript can then be used to remove the disabled value and make the field usable again.
Differences between HTML 4.01 and HTML5
Differences between HTML and XHTML
In XHTML, attribute minimization is forbidden; the disabled attribute must be defined as
Syntax
HTML