Easy Tutorial
❮ Prop Textarea Value Prop Audio Controls ❯

HTML DOM Datalist Object


Datalist Object

The Datalist object represents the HTML <datalist> element.

Accessing Datalist Object

You can use the getElementById() function to access the <datalist> element:

Creating Datalist Object

You can use the document.createElement() method to create the <datalist> element:

Datalist Object Collection

Collection Description
options Returns a collection of all options in the datalist

Standard Properties and Events

The Datalist object also supports standard properties and events.


Related Pages

HTML Tutorial: HTML Forms

HTML Reference: HTML <datalist> Tag

❮ Prop Textarea Value Prop Audio Controls ❯