转载出处:http://blog.csdn.net/u013755149/article/details/76613028 $(function(){
$('#start_date').datebox().datebox('calendar').calendar({
validator: function(date){
var startTime = new Date();
return date<=startTime;
}
});
$("#start_date").datebox({
onSelect:function(beginDate){
$('#end_date').datebox().datebox('calendar').calendar({
validator:function(endDate){
var date = new Date();
return beginDate <= endDate && endDate < date;
}
});
}
});
});
<tr> <td align="right">起始日期<label><font color="red">*</font></label>:</td>
<td><input id= "start_date" name="start_date" class="easyui-datebox" required="true" editable="false"></td>
<td align="right">结束日期<label><font color="red">*</font></label>:</td>
<td><input id = "end_date" name="end_date" class="easyui-datebox" required="true" editable="false" ></td>
</tr>