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

                         操作时间起: 
                            <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\')}'});"

posted @ 2015-09-21 14:30  新手娃娃菜  阅读(197)  评论(0编辑  收藏  举报