I am a newbie to the Jquery and I am developing an Hotel application, where the users are allowed to select the 'check-in' and 'check-out' dates, and I am using a datepicker for these fields. Logically, the 'check-out' date can either be equal to or more than the 'check-in'. I have written an validation that can check this condition but, I want to restrict the user on the UI itself, to select date for 'check-out' that are only equal to or more than 'check-in' date, by disabling all the dates that fall before 'check-in' in the date picker for 'check-out'.. I have browsed a lot, but no luck for this criteria.
Jquery UI datepicker. Disable array of Dates
I have referred the above, but the problem is, they have defined a small array of dates for which they have disabled the select. But, in my case, I want to disable all the dates that fall before 'check-in' date in the 'check-out' date picker.
How can I do that? Can someone help me please......
Thanks in Advance....