获取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;
原文地址:https://www.cnblogs.com/guohuiru/p/3225513.html