A drop-down list with one disabled option:
![]()
The disabled attribute is supported in all major browsers.
Note: The disabled attribute of the <option> tag is not supported in Internet Explorer 7 and earlier versions.
The disabled attribute is a boolean attribute.
When present, it specifies that an option should be disabled.
A disabled option is unusable and un-clickable.
The disabled attribute can be set to keep a user from selecting the option until some other condition has been met (like selecting a checkbox, etc.). Then, a JavaScript is required to remove the disabled value, and make the option selectable.
NONE.
In XHTML, attribute minimization is forbidden, and the disabled attribute must be defined as <option disabled="disabled">.
HTML <option> tag
Your message has been sent to W3Schools.