Hello,
I block dynamically some date in the jquery ui datepicker from my database using "beforeshowday".
Then I've developed a little jquery script to calculate the end date of the stay of the user depending on how many nights the user wants to stay. The user can choose the number of nights using a dropdown list.
Let's say that the user wants to come a Wednesday but that the room is already blocked in the datepicker on the Thursday and Friday. Up to now, the user can still select 3 nights and my system will still let him book this period even if the room is not available anymore on Thursday and Friday !
I'd like to improve my Jquery script and to alert my customer if the period he has chosen contains some dates which are already blocked.
Is there any function returning true or false checking if a date has already been disabled or not in the jquery datepicker ?
Thank you for your help !