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.
Inherits properties from its parent, HTMLElement.
HTMLDataListElement.options Read only
A HTMLCollection representing a collection of the contained option elements.
No specific method; inherits methods from its parent, HTMLElement.
| Specification |
|---|
| HTML> # htmldatalistelement> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
HTMLDataListElement |
20 | 12 | 4 | ≤12.1 | 12.1 | 25 | 4 | ≤12.1 | 12.2 | 1.5 | 4.4.3 | 12.2 |
options |
20 | 12 | 4 | ≤12.1 | 12.1 | 25 | 4 | ≤12.1 | 12.2 | 1.5 | 4.4.3 | 12.2 |
<datalist>
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement