Jquery Datepicker date range
Good nights from Santo Domingo
Please can you tell me how can I restring "#to" to start the next date of the selected in "#from" ?,
for example: if I select January 11 in #From, in #to start from January 12 and not from January 11 again as this code :
<script>
$(function() {
$( "#from" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
onClose: function( selectedDate ) {
$( "#to" ).datepicker( "option", "minDate", selectedDate );
}
});
$( "#to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
onClose: function( selectedDate ) {
$( "#from" ).datepicker( "option", "maxDate", selectedDate );
}
});
});
</script>