<form action="demo_form.asp" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">IE
<option value="Firefox">FR
<option value="Chrome">Ch
<option value="Opera">Op
<option value="Safari">Safari
</datalist>
<input type="submit">
</form>
我希望看到IE,FR.Ch在下拉菜单中发布价值,如Internet Explorer,Firefox等,但下拉列表&amp;帖子两个值都一样。我怎么办?
<form action="demo_form.asp" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">IE</option>
<option value="Firefox">FR</option>
<option value="Chrome">CH</option>
<option value="Opera">OP</option>
<option value="Safari">SF</option>
</datalist>
<input type="submit">
</form>
答案 0 :(得分:0)
<form action="demo_form.asp" method="get">
<input list="browsers" name="browser">
<datalist id="browsers">
<option value="Internet Explorer">IE</option>
<option value="Firefox">FR</option>
<option value="Chrome1">Ch</option>
<option value="Opera2">Op</option>
<option value="Safari3">Safari</option>
</datalist>
<input type="submit">
</form>