check whether a ui.datepicker date is disabled
Is there a way to test to see if a given day is currently 'disabled' in the datepicker UI?
I want to be able to say:
-
var d = new Date();
if($('.picker').datepicker('isDayDisabled', d)){
// set color red
} else{
// set color black
}
and things of that nature.
The existing isDisabled seems to check only whether the datepicker itself is disabled. While nice, this does not help me.
I'll accept any suggestions, even if it's only a pointer at where inside ui.datepicker I can look to find out how to add this functionality myself.