개발새발

00:00~23:00 시간 selectBox 본문

[YOGOJOGO]

00:00~23:00 시간 selectBox

재래김유진 2020. 9. 25. 16:31
728x90
반응형

<select class="widthQtr width17 fl_l" id="startDispTm" name="startDispTm">
    <c:forEach var="i"  begin="0" end="23">
     <c:set var="startTm" value="${i>9?i:'0'}${i>9?'':i}" />
        <option value="${i>9?i:'0'}${i>9?'':i}00" <c:if test="${data.startDispTm eq startTm}">selected</c:if>>${i>9?i:'0'}${i>9?'':i}:00</option>
    </c:forEach>
</select>

<select class="widthQtr width17 fl_l" id="endDispTm" name="endDispTm">
    <c:forEach var="i"  begin="0" end="23">
     <c:set var="endTm" value="${i>9?i:'0'}${i>9?'':i}" />
        <option value="${i>9?i:'0'}${i>9?'':i}00" <c:if test="${data.endDispTm eq endTm}">selected</c:if>>${i>9?i:'0'}${i>9?'':i}:00</option>
    </c:forEach>
</select>

728x90
반응형
Comments