Hey Yvan,
than you need to call a function when changing the arrive date and set
the depart date
$(document).ready(function() {
$("#arrive").datepicker({onClose:setDepart});
$("#depart").datepicker();
});
function setDepart(input){
var day = $("#arrive").datepicker("getDate");
day.setDate(day.getDate()+1);
$("#depart").datepicker( 'setDate' ,day);
}
grz,
Steven Lots
Webdeveloper
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
-~----------~----~----~----~------~----~------~--~---