I use the full calendar. here my question is how to find the complete calendar in the form of a month, week or day in the format when you click the "Previous" or "Next button". here I call the custom code for the back and forth buttons. because with this I want to run some user data. based on the fullcalendar view.
$(document).on('click', '.fc-button-next a span', function () {
here I want to find a view of the full calendar, which is a month or a week or a day
var abc = $("#calendar").fullCalendar('getView').start.toString(); var MonthVal = getMonthValue(abc); var YearVal = getYearValue(abc); $('#calendar').fullCalendar('destroy'); dataString = "{ID:" + MonthVal + "," + "year:" + YearVal + "}"; DisplayCalendarForMonth(dataString, MonthVal, YearVal); }); $(document).on('click', '.fc-button-today a span', function () {
here I want to find a view of the full calendar, which is a month or a week or a day
$('#calendar').fullCalendar('destroy'); DisplayCalendar(); });
source share