Interface SelectElement

All Superinterfaces:
Element, EventTarget, FormControlElement, Node, SearchContext

public interface SelectElement extends FormControlElement
An HTML DOM select element.

Provides access to the attributes and to the list of options of the select element.

  • Method Details

    • options

      List<OptionElement> options()
      Returns an immutable list of the option elements of the select element. If the select element does not contain any option elements, returns an empty list.
      Throws:
      ObjectClosedException - when this instance is closed
    • isMultiple

      boolean isMultiple()
      Returns true if the select element has the multiple attribute and multiple options of the element can be selected at once.
      Throws:
      ObjectClosedException - when this instance is closed
    • multiple

      void multiple(boolean multiple)
      Sets the multiple attribute of the select element to the given multiple value.
      Parameters:
      multiple - true to indicate that multiple options can be selected at once. If it is false, then only one option can be selected at a time.
      Throws:
      ObjectClosedException - when this instance is closed