In jQuery fullcalendar we have previous and next buttons. How can we call some events on click of these buttons?
During declaration of Calendar in events you can write the event's callback function:
$('#calender').fullCalendar({
events: function (start, end, timezone, callback) {
callback(eventsarray);
}
});
//eventsarray - This is a collection of data of the calendar. You can also call month wise function in this by passing first and last date of selected / current month and handle prev and next event.