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;

 

分类:

技术点:

相关文章:

  • 2022-01-10
  • 2021-12-10
  • 2021-12-10
  • 2021-03-29
  • 2021-12-10
  • 2022-01-10
猜你喜欢
  • 2021-12-10
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案