I have the following input box in my site, which I want to give suggestions by the Given Label, and when selected the Value is passed to the database for SQL.
<input type="text" name="Search" size="45px" placeholder=" Search student records." list="StudentList">
<datalist id="StudentList">
<option value="145" label="Jake">
</datalist>
I'd Like suggestions to appear based on the label and not by Value, just like in Firefox.
How can i do that?