获取select下拉列表选中的值

html:

<select id="resultList">
        <option >1班</option>
        <option >2班</option>
        <option >3班</option>
        
</select>

js:

var mySelect = document.getElementById("resultList");
var mySelectText = mySelect.options[mySelect.selectedIndex].text;

 

posted @ 2013-07-30 16:41  卡西法儿  阅读(521)  评论(0编辑  收藏  举报