<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script>
/* start date */
$(document).ready(function(){
$("#datepicker_start").datepicker({
// minDate: 0,
maxDate: "+0D",
// numberOfMonths: 2,
onSelect: function(selected) {
$("#datepicker_end").datepicker("option","minDate", selected)
}
});
$("#datepicker_end").datepicker({
minDate: 0,
maxDate:"+2D",
numberOfMonths: 1,
onSelect: function(selected) {
$("#datepicker_start").datepicker("option","maxDate", selected)
}
});
});</script>
No comments:
Post a Comment