datalist
datalist
This page has been flagged with the following issues:
High-level issues:
Content:
Summary
The datalist element (<datalist>) represents a set of <option> elements that represent predefined options for other controls. It may be associated with an <input> element by adding a list attribute to the input element.
Overview Table
| DOM Interface | HTMLDataListElement |
|---|
HTML information
| Closing Tag | required |
|---|---|
| CSS Display | inline |
Properties
| Property | options |
|---|---|
| Description | A collection of option objects that represent possible selections for a datalist element. |
Examples
HTML
<input type="text" name="locations" list="places">
<datalist id="places">
<option>Amman, Jordan</option>
<option>New York, NY, USA</option>
<option>Paris, France</option>
<option>Vienna, Austria</option>
</datalist>
Related specifications
| Specification | Status | Related Changes |
|---|---|---|
| HTML5 | W3C Working Draft |
Compatibility
Desktop
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic Support | 20 | 4 | 10 | 9 |
Unsupported |
Mobile
| Feature | Android | BlackBerry | Chrome for mobile | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Opera Mini | Safari Mobile |
|---|---|---|---|---|---|---|---|---|
| Basic Support | Unsupported | ? | Unsupported | 15 | Unsupported | 10 | Unsupported | Unsupported |
See also
Related articles
HTML
- datalist
This article contains content originally from external sources.
Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]
This tool helps to make and review comments inline.
How to Use
insert instructions, with images, here