HTML <select> disabled attribute
HTML <select> tag
Example
Disable a drop-down list:
<select disabled="disabled">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</select>
|
Try it yourself!
|
Definition and Usage
The disabled attribute specifies that a drop-down list should be disabled.
A disabled drop-down list is unusable and un-clickable.
The disabled attribute can be set to keep a user
from using the drop-down list 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 drop-down list usable.
Browser Support

The disabled attribute is supported in all major browsers.
Syntax
<select disabled="value">
|
Attribute Values
Value |
Description |
disabled |
Disables a drop-down list |
HTML <select> tag
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a fully functional free 30-day trial today!
|