JavaScript如何获得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>

 

posted @ 2013-11-01 09:35  卡西法儿  阅读(298)  评论(0编辑  收藏  举报