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.
The numbers in the table specify the first browser version that fully supports the attribute.
<option disabled>
How to add HTML <option> Tag | HTML Tag |
How to Use of <option> in a <datalist> element: | HTML Tag |
How to Use of <option> in <optgroup> elements | HTML Tag |
What is HTML <option> disabled Attribute | HTML Tag |
How to add HTML <option> disabled Attribute | HTML Tag |
What is HTML <option> label Attribute | HTML Tag |
What is HTML <option> label Attribute | HTML Tag |
What is HTML <option> selected Attribute | HTML Tag |
How to add HTML <option> selected Attribute | HTML Tag |
What is HTML <option> value Attribute | HTML Tag |
How to add HTML <option> value Attribute | HTML Tag |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |