jQuery’s datepicker allows you to highlight dates using the BeforeShowDay callback.
Is it possible to pass a second parameter to the method?
$(selector).datepicker({beforeShowDay: selectedDay});
function selectedDay(date) {
// Do stuff
return [true, 'class_name'];
}
As you can see, the parameter date is automatically passed to the selectedDay method, thus making me unsure as to how to pass a second parameter.
Cheers.
1 Answer