<c:when test="${data.id=='学费减免限制贫困等级'}">
<c:forEach var = "kndj" items = "${kndjList }" varStatus="status">
<input type = "checkbox" name = "p_param_value" value = "${kndj.id }">
<c:out value="${kndj.kndj }"/>
</c:forEach>
<% List list = (List)request.getAttribute("paramList");
for(int i=0;i<list.size();i++)
{
String paramValue = (String)list.get(i);
%>
<script type="text/javascript">
var box = document.getElementsByName("p_param_value");
for(var j = 0;j < box.length; j++)
{
var paramValue1 = "<%= paramValue%>";
if(paramValue1 == box[j].value){
box[j].checked = true;
break;
}
}
</script>
<%} %>
</c:when>
复选框回显
最新推荐文章于 2024-03-28 15:29:20 发布