longbill/jquery-date-range-picker

Disable individual days

Closed this issue · 2 comments

xApep commented

Hi.
Is it possible do disable individual days in datepicker? Let say we have a hotel availability date-picker, some days are available and some are not, is it possible to disable (can't be selected) those which are not available?

For example:
image

Thanks!

Yes, have a look at beforeShowDay() function at http://longbill.github.io/jquery-date-range-picker/, for the "disabled" days, the first entry of the array should be false...

xApep commented

Thanks!