js代码:
var mySelect = document.getElementById("resultList2");
var mySelectText = mySelect.options[mySelect.selectedIndex].text;
html代码:
<select id="resultList2" disabled="disabled">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
2022-07-10 16:22:31
js代码:
var mySelect = document.getElementById("resultList2");
var mySelectText = mySelect.options[mySelect.selectedIndex].text;
html代码:
<select id="resultList2" disabled="disabled">
<option>1</option>
<option>2</option>
<option>3</option>
</select>