日期:2014-05-17 浏览次数:20796 次
function changeSelect(valueid,selectid)
{
var value=$("#"+valueid+"").val();
var selobj=$("#"+selectid+" [value='"+value+"']");
selobj.attr("selected","selected");
}
for (int i = 0; i < list.size(); i++) {
Department d = list.get(i);
<option value="d.getId()">
if (d.getId() == Integer.parseInt(request
.getParameter("d_id")))
selected
<%=d.getId()%></option>