WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Datalist Object


Datalist Object

The Datalist Object is new in HTML5.

The Datalist object speaks to a HTML <datalist> element.

Note: The <datalist> component isn't bolstered in Internet Explorer 9 (and prior renditions), or Safari.

Access a Datalist Object

You can get to a <datalist> component by utilizing getElementById():

var x = document.getElementById("myDatalist");

Create a Datalist Object

You can make a <datalist> component by utilizing the document.createElement() method:

var x = document.createElement("DATALIST"); Try it

Datalist Object Collections

Collection Description
options Returns a gathering of the considerable number of choices in a datalist