YouTip LogoYouTip

Att Optgroup Disabled

## HTML <optgroup> disabled Attribute The `` `disabled` attribute is a boolean attribute used to disable an entire group of options within a drop-down list (` ``` ### Dynamic Control with JavaScript You can use JavaScript to dynamically enable or disable an `` based on user interaction (e.g., checking a checkbox). ```html

``` --- ## Browser Support The `disabled` attribute of the `` tag is widely supported across all modern web browsers: | Browser | Supported | | :--- | :--- | | **Google Chrome** | Yes | | **Mozilla Firefox** | Yes | | **Microsoft Edge** | Yes | | **Safari** | Yes | | **Opera** | Yes | > **Note:** Legacy browsers like Internet Explorer 7 and earlier do not support the `disabled` attribute on the `` tag. --- ## Specifications and Differences * **HTML 4.01 vs. HTML5:** There are no functional differences in how this attribute behaves between HTML 4.01 and HTML5. * **Accessibility (a11y):** Screen readers will announce the disabled state of the option group to assistive technology users, ensuring they know the options within that group are currently unavailable.
← Att Optgroup LabelAtt Object Border β†’