datalist

Control; data table; data sequence; option list; drop-down list

html5<datalist> tag syntax

Function: <datalist> tag defines the option list. Use this element in conjunction with an input element to define the possible values ??of the input. The datalist and its options are not displayed, it is just a list of valid input values. Please use the list attribute of the input element to bind the datalist.

html5<datalist> tag example

<!DOCTYPE HTML>
<html>
<body>

<input list="cars" />
<datalist id="cars">
	<option value="BMW">
	<option value="Ford">
	<option value="Volvo">
</datalist>

</body>
</html>
Run instance ?

Click the "Run instance" button to view the online instance