Back to Content

HTMLOptGroupElement

files/en-us/web/api/htmloptgroupelement/index.md

latest977 B
Original Source

{{ APIRef("HTML DOM") }}

The HTMLOptGroupElement interface provides special properties and methods (beyond the regular {{domxref("HTMLElement")}} object interface they also have available to them by inheritance) for manipulating the layout and presentation of {{HTMLElement("optgroup")}} elements.

{{InheritanceDiagram}}

Instance properties

Inherits properties from its parent, {{domxref("HTMLElement")}}.

  • {{domxref("HTMLOptGroupElement.disabled")}}
    • : A boolean value representing whether or not the whole list of children {{HTMLElement("option")}} is disabled (true) or not (false).
  • {{domxref("HTMLOptGroupElement.label")}}
    • : A string representing the label for the group.

Instance methods

No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • The HTML element implementing this interface: {{ HTMLElement("optgroup") }}.