1

I have a booking page. eg, The booking start on 2018-01-10 and end on 2018-01-20.

If some date 2018-01-15 and 2018-01-16 are disabled so how can we inform user "there is some disabled dates in between 2018-01-10 and 2018-01-20 so bookings not possible".

or

Not clickable end date.

$("#dateFrom").datepicker({
                dateFormat: "dd.mm.y",
                monthNames: ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
                monthNamesShort: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
                dayNamesMin: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
                minDate: 0,
                beforeShowDay: ["2018-01-15","2018-01-16"],
});  
Sarath TS
  • 2,432
  • 6
  • 32
  • 79
  • What isn't working? What did you try and how did it fail? As is, I don't think anyone could actually answer other than to say, write some code that checks it and take appropriate action. – LawfulEvil Jan 08 '18 at 13:18
  • This sounds a bit complicated. Just grey out the dates where no booking is possible. And make something like `pointer-events: none;` – kevinSpaceyIsKeyserSöze Jan 08 '18 at 13:25
  • @kevinSpaceyIsKeyserSöze, I updated my question – Sarath TS Jan 08 '18 at 13:40
  • @LawfulEvil I updated my question. I hope now it is easy to understand – Sarath TS Jan 08 '18 at 13:41
  • Possible duplicate of [Jquery UI datepicker. Disable array of Dates](https://stackoverflow.com/questions/15400775/jquery-ui-datepicker-disable-array-of-dates) – ProEvilz Jan 08 '18 at 13:44

0 Answers0