So I have a two datepickers, pretty simple stuff, to and from date...
Could you please tell me how to pass highlighted "startDate" to the date that was selected from the first datepicker.
Here is an image of a bug I'm trying to solve the date is set to current date (today), disbled date is OK, the date that should be highlighted is circled in blue:
And here is the source code:
$("#mzti-start-date").datepicker({ format: 'dd MM yyyy', startDate: date, autoclose: true }).on('changeDate', function(dateEvent) { start_date = $("#mzti-start-date").val(); $('#mzti-finish-date').datepicker('setStartDate', start_date); }); $("#mzti-finish-date").datepicker({ format: 'dd MM yyyy', autoclose: true });