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
HTMLCollection representing a collection of the contained option elements.No specific method; inherits methods from its parent, HTMLElement.
| Specification | Status | Comment |
|---|---|---|
| HTML Living Standard The definition of 'HTMLDataListElement' in that specification. | Living Standard | |
| HTML5 The definition of 'HTMLDataListElement' in that specification. | Recommendation | Initial definition |
| Desktop | ||||||
|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
| Basic support | 62 | Yes | 4 | No | ? | No |
options |
62 | Yes | 4 | No | ? | No |
| Mobile | |||||||
|---|---|---|---|---|---|---|---|
| Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
| Basic support | ? | ? | Yes | 4 | ? | No | ? |
options |
? | ? | Yes | 4 | ? | No | ? |
<datalist>
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLDataListElement