<div class="codetitle"> <span><a style="CURSOR: pointer" data="42937" class="copybut" id="copybut42937" onclick="doCopy('code42937')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code42937"> <br>var count=$("#drpCity option").length; <br>//查找城市 <br>for(var i=0;i<count>var vTmp=$("#drpCity").get(0).options[i].value; <br>if($.trim(vTmp)==vDpoizone){ <br>$("#drpCity").get(0).options[i].selected = true; <br>$("#drpCity").trigger("change"); <br>break; <br>} <br>} <br>} <br></count> </div>