Easy Tutorial
❮ Att Area Download Tag Rp ❯

HTML <select> disabled Attribute

HTML <select> Tag

Example

A disabled dropdown list:


Browser Support

All major browsers support the disabled attribute.


Definition and Usage

The disabled attribute is a boolean attribute.

The disabled attribute specifies that the dropdown list should be disabled.

A disabled dropdown list is unusable and unclickable.

The disabled attribute can be set until some conditions are met (such as selecting a checkbox), and then the dropdown list can be enabled. JavaScript can be used to remove the disabled attribute value to make the dropdown list usable.


Differences Between HTML 4.01 and HTML5

None.


Differences Between HTML and XHTML

In XHTML, attribute minimization is forbidden, and the disabled attribute must be defined as <select disabled="disabled">.


Syntax

❮ Att Area Download Tag Rp ❯