jQuery datepicker allows you to highlight dates using the BeforeShowDay callback.
Is it possible to pass the second parameter to a method?
$(selector).datepicker({beforeShowDay: selectedDay});
function selectedDay(date) {
return [true, 'class_name'];
}
As you can see, the parameter is dateautomatically passed to the selectedDay method, so I'm not sure how to pass the second parameter.
Greetings.
source
share