第1个回答 2014-06-27
首先看下你要把第几条设置为默认;
<option> 的id规律化写成 id="option"+index;的形式;
第几条就是index;
$("#option"+index).css("selected":"selected");
第2个回答 2015-05-19
直接设置下拉框的值就可以了
$("#selectid").val("defaultValue");
第3个回答 推荐于2018-02-23
<select>
<option <% if(staff.getSection()==1){ out.print("selected=''")}%>>1</option>
<option <% if(staff.getSection()==2){ out.print("selected=''")}%>>2</option>
</select>本回答被网友采纳