Can anyone help me with changing the color of the box in the month view in the arshaw calendar? I've been attempting to do so using this script, but my lack of expertise in javascript is proving to be a hurdle. The goal is for this script to be called with a specific day input to change its color. My approach involves saving today's date, navigating to the desired date on the calendar, trying to modify the CSS of the calendar (unsuccessfully), and finally resetting back to the original date. Unfortunately, all I see in the console when using Firebug is an "undefined" message.
function changeDate (dayToChange) {
var original=$('#calendar').fullCalendar( 'getDate' );
$('#calendar').fullCalendar('gotoDate',$('#calendar').fullCalendar.year,$('#calendar').fullCalendar.month, dayToChange );
$($('#calendar').fullCalendar( 'getDate' )).css('background-color', '#ffcccc');
$('#calendar').fullCalendar('gotoDate',original);
var e = $('#calendar').fullCalendar( 'getDate' );
}