Your event target (#calender_section a
) is replaced after refreshing the calendar. Because of the replacing, the event listener isn’t applied to the target anymore. You have to apply the event listener to a parent element which doesn’t get replaced (here it is #calendrier_wrapper
) and use the selector parameter of on
(see http://api.jquery.com/on/):
$("#calendrier_wrapper").on('click', '#calender_section a', function(e) {
...
});