How to call events on clicking prev and next button?

后端 未结 11 1635
天涯浪人
天涯浪人 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:18

    This worked for me:

    $('body').on('click', 'button.fc-prev-button', function() {
      //do something
    });
    
    $('body').on('click', 'button.fc-next-button', function() {
      //do something
    });
    

提交回复
热议问题