datepicker add class

datepicker add class


it is possible to add a class to datepicker cell(day). to use with
beforeShowDay
example:
$("#Text1").datepicker({ beforeShowDay: nationalDays,showOtherMonths:
true,showWeeks: true, firstDay: 7,changeFirstDay: false});
function nationalDays(date) {
for (i = 0; i < natDays.length; i++) {
if (date.getMonth() == natDays[i][0] - 1
&& date.getDate() == natDays[i][1]
&& date.getFullYear() == natDays[i][2]) {
return [false, natDays[i][0][1] ];
$(".ui-datepicker-days-cell").addclass("desocupa");
}
}
return [true, ''];
}
});