您的位置:首页 > 其它

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

2015-09-21 14:30 621 查看
 操作时间起: 
<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\')}'});"/>
 操作时间止: 
<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\')}'});"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: