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.


Compatibility

Do you think this data can be improved? You can ask to add by opening an issue or make a pull request.

Desktop

FeaturesChromeFirefoxInternet ExplorerOperaSafari
Basic support
20
Yes
?
Unknown
10
Yes
9.5
Yes
?
none

Mobile

FeaturesAndroidFirefox MobileIE MobileOpera MobileSafari Mobile
Basic support
33
Yes
4.0
Yes
?
none
10
Yes
?
none

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

See also

Related articles

HTML





































  • 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]