← 返回首页
HTMLDataListElement - Web APIs | MDN

HTMLDataListElement

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2019.

The HTMLDataListElement interface provides special properties (beyond the HTMLElement object interface it also has available to it by inheritance) to manipulate <datalist> elements and their content.

EventTarget Node Element HTMLElement HTMLDataListElement

In this article

Instance properties

Inherits properties from its parent, HTMLElement.

HTMLDataListElement.options Read only

A HTMLCollection representing a collection of the contained option elements.

Instance methods

No specific method; inherits methods from its parent, HTMLElement.

Specifications

Specification
HTML
# htmldatalistelement

Browser compatibility

Enable JavaScript to view this browser compatibility table.

See also

  • The HTML element implementing this interface: <datalist>