datalist

< html‎ | elements
Jump to: navigation, search

datalist

This article is In Progress.



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 none


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
?
33
15
Unsupported
10
Unsupported
Unsupported

See also

Related articles

HTML




































  • html/elements/datalist















… further results

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]