How to Highlight in BOLD specific dates in the datepicker? I have the array with dates var datesArray = new Array(); I know that I need to use beforeShowDay: method, but I can’t figure it out to make it work.
This is my function:
$(function() {
$( "#datepicker" ).datepicker({
dateFormat: 'yy-mm-dd',
onSelect: function(dateText, inst) {
dateSelected(dateText, tid) // run my function on click
}
});
});
Yes you need to use beforeShowDay event, here is the test