前端select标签问题 select前端界面 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 类似吧。 <select id="xtatus"> <c:forEach items="${xxx}" var="item"> <c:choose> <c:when test="${item.option_value eq xxx}"> <option value="${item.option_value }" selected="selected">${item.option_text}</option> </c:when> <c:otherwise> <option value="${item.option_value }">${item.option_text}</option> </c:otherwise> </c:choose> </c:forEach> </select> 页面加载完毕后,js获取select 然后循环option 判断value值,然后设置selected <select value="${value}" > <select id="dateList" name="dateList" onchange="doQuery()"> <c:forEach var="dateList" items="${dateList}"> <option <c:if test="${date==dateList}">selected="selected"</c:if> value="${dateList}">${dateList}</option> </c:forEach> </select> 用EL表达式 ${param.select的名字} 。取到修改前的select的值,再判断select哪个选项是这个值用,然后让其选中。 请问如何禁用向下还原,让页面打开后一直最大化,不能改变其大小 菜鸟问题|MyEclipse内置浏览器可以显示图片,外部浏览器不显示图片,绝对路径 java FTP上传的问题. 刚用MyEclipse如何解决这个问题 关于XML与数据库同步的问题,还请大侠们指教 请大家把JSP/SERVLET/JAVABEAN的精华贴上来!详情请进!(第二帖) 关于hibernate的级联删除,在线等大牛解答 jsp程序的执行 jsp如何防止由于用户刷新网页引起的重复计算错误? ssm需要加载数据库线程池吗 新手请教有关将静态网页改成jsp的问题 关于ie cookies的问题
<select id="xtatus">
<c:forEach items="${xxx}" var="item">
<c:choose>
<c:when test="${item.option_value eq xxx}">
<option value="${item.option_value }" selected="selected">${item.option_text}</option>
</c:when>
<c:otherwise>
<option value="${item.option_value }">${item.option_text}</option>
</c:otherwise>
</c:choose>
</c:forEach>
</select>
<c:forEach var="dateList" items="${dateList}">
<option <c:if test="${date==dateList}">selected="selected"</c:if> value="${dateList}">${dateList}</option>
</c:forEach>
</select>