easyui中的datebox空間,起始時間不受限制,終止時間不能選擇起始時間選中的時間靠前的時間


<input id= "start_date" name="start_date" class="easyui-datebox" required="true" editable="true">
<input id = "end_date" name="end_date" class="easyui-datebox" required="true" editable="true" >

 

$("#start_date").datebox({
onSelect:function(beginDate){
$('#end_date').datebox().datebox('calendar').calendar({
validator:function(endDate){
return beginDate <= endDate;
}
});

$('#end_date').datebox({
onShowPanel : function(){
$(this).datebox('calendar').calendar("moveTo", beginDate);
}
});

}
});


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM