The disabled attribute for <optgroup> element in HTML is used to specify that the option-group is disabled. A disabled optgroup is un-clickable and unusable. It is a boolean attribute.
The disabled
attribute is a boolean attribute.
When present, it specifies that an option-group should be disabled.
A disabled option-group is unusable and un-clickable.
The disabled
attribute can be set to keep a user from selecting the option-group 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-group selectable.
The numbers in the table specify the first browser version that fully supports the attribute.
<optgroup disabled>
How to create HTML <optgroup> Tag | HTML Tag |
What is HTML <optgroup> disabled Attribute | HTML Tag |
How to add HTML <optgroup> disabled Attribute | HTML Tag |
What is HTML <optgroup> label Attribute | HTML Tag |
How to add HTML <optgroup> label Attribute | HTML Tag |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |