The Datalist object represents an HTML <datalist> element.
Note: The <datalist> element is not supported in Internet Explorer 9 (and earlier versions), or Safari.
You can access a <datalist> element by using getElementById():
You can create a <datalist> element by using the document.createElement() method:
Collection | Description |
---|---|
options | Returns a collection of all the options in a datalist |
The Datalist object also supports the standard properties and events.
HTML tutorial: HTML Forms
HTML reference: HTML <datalist> tag