Multiple-Dates-Picker-for-jQuery-UI icon indicating copy to clipboard operation
Multiple-Dates-Picker-for-jQuery-UI copied to clipboard

pickableRange not skipping dates disabled by beforeShowDay

Open sankalptambe opened this issue 9 years ago • 0 comments

I am working with jquery multidatespicker where I have to define a range of dates to be allowed after the first date has been picked.

I need to exclude the weekends from all the future dates. However, pickableRange doesn't skip the weekends that are disabled with beforeShowDay.

I also tried adding addDisabledDates but it is not feasible to add all the weekend dates in an array.

This is the code that I have been trying.

$('#id').multiDatesPicker({ pickableRange: 15, adjustRangeToDisabled: true, beforeShowDay: $.datepicker.noWeekends, })

sankalptambe avatar Aug 26 '16 13:08 sankalptambe