datepicker beforeShowDate

datepicker beforeShowDate

I have an in-line datepicker.  I want to apply styles to dates of events on a page which are retrieved via a json feed.  

I'm using beforeShowDay. The function loops through the json feed and returns [true, 'classname'] for each item where the date matches. An "alert()" prior to the returned array shows that I'm getting the correct results but I can't see the class set anywhere in the source code. 

  1. jQuery('#calendar').datepicker({
  2.   beforeShowDay: function(date)
  3.   {
  4.     for (i = 0; i < events.length; i++) {
  5.       if (String('0'+(date.getMonth()+1)).slice(-2) == events[i].start_date.substr(5,2) && String('0'+date.getDate()).slice(-2) == events[i].start_date.slice(-2)) {
  6.     
  7.         return [true, 'classname'];
  8.       }
  9.   }
  10.   return [true, ''];
  11.   },
  12.   dateformat: 'yy/mm/dd',
  13.   firstDay: 1,
  14.   changeFirstDay: false,
  15.   defaultDate: ehCalendarDate
  16. })

Does anyone know where the 'classname' is applied.  Is it the 'td' or the 'a' element?  In my case its not showing anywhere but it'd be nice to know where its meant to be displayed.