Interface OptionElement

All Superinterfaces:
Element, EventTarget, Node, SearchContext

public interface OptionElement extends Element
An HTML DOM option element.

Provides access to the attributes of the option element.

  • Method Details

    • isSelected

      boolean isSelected()
      Returns true if the current option element is selected.
      Throws:
      ObjectClosedException - when this instance is closed
    • select

      void select()
      Selects the current option element.
      Throws:
      ObjectClosedException - when this instance is closed
    • unselect

      void unselect()
      Un-selects the current option element.
      Throws:
      ObjectClosedException - when this instance is closed