日期:2014-05-17  浏览次数:20646 次

怎样动态的获取位于下拉列表的值?我想通过得到下拉列表的值进行判断
<select name="role"><option value="校长助理" name="asistant" selected>校长助理</option>><option value="财务人员" name="moneyManage">财务人员</option><option value="家长" name="parents">家长</option></select>

------解决方案--------------------
什么叫动态获取要怎么获取,没明白意思
------解决方案--------------------
var selectInfo=document.getElementById('selectID');
var selectCon=selectInfo.options[selectInfo.selectedIndex].innerHTML;