It used to be hard to write a suggestion in JS. In the HTML5 era, there is no need to use the datalist tag directly, which directly reduces the workload. as follows
The code is as follows:
<title>HTML5 datalist tag</title>
Browser version: < input list = “words” >
<option value=”Internet Explorer”>
Datalist provides a pre-defined list, which is associated with input through ID. when input in input, it will have the function of autocomplete, and the user will see a drop-down list for selection.
Chrome / Firefox / Opera and ie10 + are supported, but Safari is still not supported until version 7.