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