js select 默认回显判断


         <select id="dataselect"    class="input-medium" style="width: 20%">
                        <option value="">请选择</option>
                        <option value="1" <c:if test="${'1' eq dataselect}">selected</c:if> >近一周</option>
                        <option value="2" <c:if test="${'2' eq dataselect}">selected</c:if> >近一月</option>
                        <option value="3" <c:if test="${'3' eq dataselect}">selected</c:if>>近一年</option>
             </select>
<c:if test="${'1' eq dataselect}">selected</c:if>


免责声明!

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



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