How to call events on clicking prev and next button?

后端 未结 11 1680
天涯浪人
天涯浪人 2020-12-24 07:26

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

11条回答
  •  被撕碎了的回忆
    2020-12-24 08:21

    Just a quick update, no idea for how long but the accepted answer works for me like this:

    $('.fc-prev-button').click(function(){
       alert('prev is clicked, do something');
    });
    
    $('.fc-next-button').click(function(){
       alert('nextis clicked, do something');
    });
    

    Notice slight change,

    also on today click is as follows:

    $(".fc-today-button").click(function () {
    

    Hope i helped someone.

提交回复
热议问题