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>
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>