The Datalist object represents an HTML <datalist> element.
Note: The <datalist> element is not supported in Internet Explorer 11 (and earlier versions).
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
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!