[jQuery] datepicker
[jQuery] datepicker
guys
I have 2 datepickers 1)arrivalDate 2)DepartDate
The mindate of Depart must be the mindate of ArrivalDate
I'm able to get the arrival date but
I'm unable to set that in depart mindate attribute
//arrivaldate.value=14/04/2009//which is erroneous when set to depart
date
The snippet of code is here below
function getStartDate() {
$("#arrivalDate").datepicker({minDate: 0, maxDate: '+1M +10D'});
}
function getEndDate() {
var s=document.getElementById("arrivalDate").value;
alert(s);
if(s=="")
{
alert("Please select start date first");
}
else{
$("#depart").datepicker({minDate: s, maxDate: '+1M +10D'}); //
s=14/04/2009//which is erroneous
}
}