HTML
Example
A drop-down list with 4 options, one of which is disabled:
<select>
<option value="volvo" disabled Volvo option>
<option value="saab" Saab option>
<option value="vw" VW option>
<option value="audi" Audi option select>Try it »
Browser support





All major browsers support the disabled attribute.
**Note:** Internet Explorer 7 and earlier versions do not support the
Definition and Usage
The disabled attribute is a boolean attribute.
The disabled attribute specifies that an option should be disabled.
A disabled option is neither usable nor clickable.
You can set the disabled attribute until certain conditions are met (such as selecting a checkbox), then restore the user's use of the option. Then, you can use JavaScript to clear the disabled attribute to make the option available again.
Differences between HTML 4.01 and HTML5
none.
Differences between HTML and XHTML
In XHTML, attribute minimization is forbidden; the disabled attribute must be defined as
HTML