Interface HTMLOptGroupElement

All Superinterfaces:
Element, EventTarget, HTMLElement, InnerHTML, Node, NonDocumentTypeChildNode, ParentNode
All Known Implementing Classes:
HTMLOptGroupElementImpl

public interface HTMLOptGroupElement extends HTMLElement
Provides special properties and methods (beyond the regular HTMLElement object interface they also have available to them by inheritance) for manipulating the layout and presentation of <optgroup> elements.
  • Method Details

    • isDisabled

      boolean isDisabled()

      isDisabled.

      Returns:
      a boolean.
    • setDisabled

      void setDisabled(boolean disabled)

      setDisabled.

      Parameters:
      disabled - a boolean.
    • getForm

      HTMLFormElement getForm()
      Retrieves a reference to the form that the object is embedded in.
      Returns:
      a HTMLFormElement object.
    • getLabel

      String getLabel()
      Sets or retrieves a value that you can use to implement your own label functionality for the object.
      Returns:
      a String object.
    • setLabel

      void setLabel(String label)

      setLabel.

      Parameters:
      label - a String object.