select标签刷新后保持之前选择值


<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<select id="sequence" >
<option value=""></option> <option value="gread" <c:if test="${requestScope.sequence eq 'gread'}">selected="selected"</c:if> >年级</option> <option value="class" <c:if test="${requestScope.sequence eq 'class'}">selected="selected"</c:if>>班级</option> </select>

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM