<select name="commercial" id="commercial_hotel_1" >
<option value="0" selected>--区县--</option>
</select>
<select name="commercial" id="commercial_hotel_2" >
<option value="1" selected>--区县--</option>
</select>
<script>
alert(document.getElementById('commercial').options[document.getElementById('commercial').selectedIndex].value);
alert(document.getElementById('commercial').id); //ie自动获取name,fireFox不支持
alert(document.getElementById('commercial_hotel_1').options[document.getElementById('commercial').selectedIndex].value);
alert(document.getElementById('commercial_hotel_2').options[document.getElementById('commercial').selectedIndex].value);
</script>
===============
有时ie的自作cute真不是个好事,会产生很多副面作用。我这次就让其害了下
不仅仅是ie,window有时也是这样, 对于初者很好,可对于高级的用户并不是很好。
当然高级的用户也有解决办法。
所以从这个角度而言,照顾低级用户是有好处的,这可能也是ms的在低端用户流行的一个原因吧