MDN self-hosted library · e01.org

HTMLDataListElement: options property

HTML DOM

no runnable cells web-api-instance-property upstream source

HTML DOM

The options read-only property of the HTMLDataListElement interface returns an HTMLCollection of HTMLOptionElement elements contained in a datalist. The descendant option elements provide predefined options for the input control associated with the <datalist>.

Value

An HTMLCollection of HTMLOptionElement elements.

Specifications

Browser compatibility

See also

  • HTMLDataListElement
  • HTMLOptionElement
  • datalist
  • option