$(document).ready(function() {
$("#arrive").datepicker({});
$("#depart").datepicker({beforeShow:setNextDay});
});
function setNextDay(input) {
var day = $("#arrive").datepicker("getDate");
day.setDate(day.getDate()+1);
return {defaultDate: day};
}
i think this code is much more simple
grz,
Steven Lots
http://www.b-hind.eu
http://www.lotsofdots.be
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---