guohuiru

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;

 

分类:

技术点:

相关文章: