});
- $("#arriveCal").click(function () {
+ // add a minimum of 1 day to the reservation length
+ $(arrival_date).change( function () {
+ var min_date = $(this).datepicker('getDate', '+1d');
+ min_date.setDate(min_date.getDate() + 1);
+ $(departure_date).datepicker('setDate', min_date);
+ });
+
+ // set the cal icons to be show the datepicker when clicked
+ $("#arriveCal").click(function () {
$(arrival_date).datepicker("show");
});
$("#departCal").click(function () {
});
- $("#arriveCal").click(function () {
+ // add a minimum of 1 day to the reservation length
+ $(arrival_date).change( function () {
+ var min_date = $(this).datepicker('getDate', '+1d');
+ min_date.setDate(min_date.getDate() + 1);
+ $(departure_date).datepicker('setDate', min_date);
+ });
+
+ // set the cal icons to be show the datepicker when clicked
+ $("#arriveCal").click(function () {
$(arrival_date).datepicker("show");
});
$("#departCal").click(function () {