I have this code
$(".datepicker").datepicker();
$(".datepicker-to").datepicker({
changeMonth: true,
changeYear: true,
maxDate: "0D"
});
Then my textboxes are:
<div>
<span>Date From :</span>
<input type="text" class="datepicker-to" id="dateFrom" name="dateFrom" />
</div>
<div>
<span>Date To :</span>
<input type="text" class="datepicker-to" id="dateTo" name="dateTo" />
</div>
Now, when I clicked a date in "from" txtbox I want to disable the dates in "to" txtbox. The dates that needs to be disble are dates before the dates I entered in the "from" txtbox because obviously it is not valid to enter dates from jan21-jan9...I hope I make myself clear...