<div class="codetitle"> <span><a style="CURSOR: pointer" data="54430" class="copybut" id="copybut54430" onclick="doCopy('code54430')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code54430"> <br>funtion setSelectOption(a,b){//a =>select 的id名,b=>已知option的值 <br><br>for (i=0;iif($(a).options[i].value == b){//遍历select <br>$(a).options[i].selected=true;//选中特定值 <br>break; <br>} <br> </div>