首页 > 其他 > 详细

myDatePinker设置开始时间不能大于结束时间

时间:2015-09-21 15:21:06      阅读:357      评论:0      收藏:0      [点我收藏+]
                         操作时间起: 
                            <input type="text" name="startTime" id="startTime"  style="width:90px;color:#999999; "
                                    value="<c:if test ="${not empty startTime}">${fn:substring(startTime,0,10)}</c:if><c:if test = "${empty startTime}"><fmt:formatDate value="<%=beginDate %>" type="both" pattern="yyyy-MM-dd" /></c:if>" 
                                    onfocus="inputfocus(this)" class="Wdate" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd‘,maxDate:‘#F{$dp.$D(\‘endTime\‘)}‘});"/>
                         &nbsp;操作时间止:&nbsp;
                            <input type="text" name="endTime" id="endTime"  style="width:90px;color:#999999; "
                                    value="<c:if test = "${not empty endTime}">${fn:substring(endTime,0,10)}</c:if><c:if test = "${empty endTime}"><fmt:formatDate value="<%=endDate %>" type="both" pattern="yyyy-MM-dd" /></c:if>" 
                                    onfocus="inputfocus(this)" class="Wdate" onclick="WdatePicker({dateFmt:‘yyyy-MM-dd‘,minDate:‘#F{$dp.$D(\‘startTime\‘)}‘});"/>

 

onclick="WdatePicker({dateFmt:‘yyyy-MM-dd‘,maxDate:‘#F{$dp.$D(\‘endTime\‘)}‘});"

onclick="WdatePicker({dateFmt:‘yyyy-MM-dd‘,minDate:‘#F{$dp.$D(\‘startTime\‘)}‘});"

myDatePinker设置开始时间不能大于结束时间

原文:http://www.cnblogs.com/jinzhiming/p/4826088.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!