how to had a minDate + 1 day in the end date range example in datepicker ??
hello how can i have a mindate+1 day (exemple : start date (#from) 1 march 2011 and have a mindate like end date(#to) as 2 march 2001 with this source code i have tried a lot of stuff but always failing ...:
$(function() {
var dates = $( "#from, #to" ).datepicker({
defaultDate: "+1w",
changeMonth: true,
numberOfMonths: 3,
onSelect: function( selectedDate ) {
var option = this.id == "from" ? "minDate" : "maxDate",
instance = $( this ).data( "datepicker" ),
date = $.datepicker.parseDate(
instance.settings.dateFormat ||
$.datepicker._defaults.dateFormat,
selectedDate, instance.settings );
dates.not( this ).datepicker( "option", option, date );
}
});
});
hope you can help me ...
Olivier