Well, this is untested, but it seems right......
$('#dateArrive').datepicker({onSelect: function(dateText, inst)
{
$("#dateDepart').datepicker("option", "minDate", new Date(dateText));
})
});
On Tue, Jul 28, 2009 at 1:35 PM, Yvan<[email protected]> wrote:
>
> I have 2 jquery-based datepickers on a site that I'm developing
> (lefthand column - quick reservation form)
>
> http://www.theseagatehotel.com/www.theseagatehotel.com/index.html
>
> Is there any way that I can update the datepickers so that when you
> choose an "Arrive" date, .... the first choosable "Depart" date would
> be automatically updated to be 1 day after the chosen "arrive" date?
>
> For example, .. if I was to choose November 6th from the "Arrive"
> datepicker, .. the first choosable date in the "Depart" datepicker
> should be dynamically set to November 7th, .. and all dates before
> November 7th in that "Depart" datepicker should be grayed out and un-
> clickable.
>
> How would I accomplish something like this? Is it even technically
> possible?
>
> Thanks,
> - Yvan
>
>
>
> >
>
--
Truth,
James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---