ClickStart logoHTML5 to the point

Providing autocomplete options

You can use a datalist to provide autocomplete options for an input element.

Attribute

Description

data

Specifies an XML file that can be used to prefill the datalist.

Screenshot

Code

<input list="players">
<datalist id="players">
<option value="Miroslav Klose">
<option value="Bastian Schweinsteiger">
<option value="Philipp Lahm">
<option value="Mesut Oezil">
</datalist>

Example