【发布时间】:2013-02-19 11:47:23
【问题描述】:
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>
我希望根据标签而不是值显示建议,就像在 Firefox 中一样。
我该怎么做?
【问题讨论】:
标签: php javascript search input