【发布时间】:2013-10-07 18:10:36
【问题描述】:
请看链接:http://jsfiddle.net/NaUAL/
结果:
<select id="second-choice">
<option>Chips</option>
<option>Cookies</option>
</select>
想要的结果:
<select id="second-choice">
<option value="1">Chips</option>
<option value="2">Cookies</option>
</select>
我需要一种为下拉菜单添加价值的方法。
【问题讨论】:
标签: jquery arrays option key-value html-select