Example
Example
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>Datalist Autocomplete</title>
5
</head>
6
<body>
7
8
<h2>Choose Code Editor</h2>
9
<form>
10
<label for="editorInput">Your Preferred Editor:</label>
11
<input list="editors" id="editorInput" name="editor" placeholder="Type or select...">
12
13
<datalist id="editors">
14
<option value="Visual Studio Code">
15
<option value="Sublime Text">
16
<option value="Vim">
17
<option value="Neovim">
18
</datalist>
19
</form>
20
21
</body>
22
</html>
