<SELECT NAME="s">
<OPTION VALUE="1">1</OPTION>
<OPTION value="2">2</OPTION>
<OPTION value="3">3</OPTION>
</SELECT>
<script>
s.options[1].selected=true
</script>
定位option 初始选择
最新推荐文章于 2022-02-24 17:15:28 发布
<SELECT NAME="s">
<OPTION VALUE="1">1</OPTION>
<OPTION value="2">2</OPTION>
<OPTION value="3">3</OPTION>
</SELECT>
<script>
s.options[1].selected=true
</script>