List usage in html5 Input, you can drop down the selection or fuzzy search input selection

The list attribute refers to a list of data that contains predefined options for input fields. 
<input type="url" list="url_list"name="link" /> <datalist id="url_list"> <option label="W3Schools" value="http://www.w3schools.com" /> <option label="Google" value="http://www.google.com" /> <option label="Microsoft" value="http://www.microsoft.com" />

<!-- list="url_list" 是datalist 的id-->
<!-- Here is the list, you can pass a list from the backend to traverse -->

</datalist>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324691007&siteId=291194637