A demonstration of how to access a DATALIST element

Click the button to get the number of option elements in the datalist.

Note: The input element's list attribute is used to bind it together with the datalist element.

Note: The datalist element is not supported in Internet Explorer 9 and earlier versions, or in Safari.