<html>
<head>
<script>
function showValue(){
alert(document.all.select1.options[document.all.select1.selectedIndex].innerText);
}
</script>
</head>
<body>
<select name="select1" onChange="showValue()">
<option value="1">1111</option>
<option value="2">2222</option>
</select>
</body>
</html>
<head>
<script>
function showValue(){
alert(document.all.select1.options[document.all.select1.selectedIndex].innerText);
}
</script>
</head>
<body>
<select name="select1" onChange="showValue()">
<option value="1">1111</option>
<option value="2">2222</option>
</select>
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货