How to call events on clicking prev and next button?

Neo picture Neo · Jul 22, 2011 · Viewed 85k times · Source

In jQuery fullcalendar we have previous and next buttons. How can we call some events on click of these buttons?

Answer

Burak Ogutken picture Burak Ogutken · Feb 25, 2015

The best way is:

viewRender: function(view, element) {
  var b = $('#calendar').fullCalendar('getDate');
  alert(b.format('L'));
},