How to call events on clicking prev and next button?

后端 未结 11 1651
天涯浪人
天涯浪人 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 07:59

    You couldsimply attach an event to the button:

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

提交回复
热议问题