//民族
html = "";
html+="<select id='mz'><option value =''>--未选择--</option>";
<c:forEach items="${mz}" var="a" varStatus="vs">
html+="<option ";
if("${a.key}"==jsonObj.mz){
html+=" selected ";
}
html+=" value ='"+"${a.key}"+"'>"+"${a.key}"+"</option>";
</c:forEach>
html+="</select>";
$("#mz_td").html(html)
js下拉选赋值
最新推荐文章于 2022-10-26 18:01:37 发布