I am using the jQuery datepicker and I currently have this code:
$("#dateObj").datepicker({
beforeShowDay: findDateAvailable
});
where findDateAvailable is a function which checks if the date is in an array and if not, makes the date not selectable.
My question is: how do I change which dates are 'active' and can be selected without changing my array and then re-creating the datepicker object?