hi
In full calendar, need to highlight the selected date and when i change the selection , the previous selection should clear off and the current selected should be highlighted.
<div style="border:solid 2px red;">
<div id='calendar'></div>
</div>
$(document).ready(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
var events_array = [
{
title: 'Test1',
start: new Date(2012, 8, 20)},
{
title: 'Test2',
start: new Date(2012, 8, 21)}
];
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
editable: true,
events: events_array,
dayClick: function(date, allDay, jsEvent, view) {
$(this).parent().siblings().removeClass('fc-cell-overlay');
$(this).addClass('fc-cell-overlay');
}
});
});