html下拉框
<select id="selinfo">
<option value="0">取值</option>
</select>
JavaScript中获取select的值和显示值
var selinfo=document.getElementById("selinfo");
var value=selinfo.options[selinfo.selectdIndex].value;//value=0;
var text=selinfo.options[selinfo.selectedIndex].innerHTMl;//text="取值"
<select id="selinfo">
<option value="0">取值</option>
</select>
JavaScript中获取select的值和显示值
var selinfo=document.getElementById("selinfo");
var value=selinfo.options[selinfo.selectdIndex].value;//value=0;
var text=selinfo.options[selinfo.selectedIndex].innerHTMl;//text="取值"