获取Option的Value值是比较容易的,但是用javascript获取Text值却有点麻烦,具体应该怎么样做呢?请看:
<form name="form1">
<select name="westenet">
<option value="1">11</option>
<option value="2">22</option>
<option value="3">33</option>
</select>
</form>
1、获取下拉菜单的Option的Value值
document.form1.westenet.value
2、获取下拉菜单的Option的Text值
document.form1.westenet.options[document.form1.westenet.selectedIndex].text
<form name="form1">
<select name="westenet">
<option value="1">11</option>
<option value="2">22</option>
<option value="3">33</option>
</select>
</form>
1、获取下拉菜单的Option的Value值
document.form1.westenet.value
2、获取下拉菜单的Option的Text值
document.form1.westenet.options[document.form1.westenet.selectedIndex].text