Can maxdate attribute be reset inside the onSelect delegate?
It would be perfect if I could do something like:
$(".date-picker").datepicker({
maxDate: someDate,
onSelect: function (date) {
if(somecondition is true) {
maxDate = someotherDate;
}
//some other functionality goes here,
}
});
You should be able to do this:
To reset the original value, you’ll want to store that value somewhere and simply reuse the above code with that original value where appropritate.