Closed amarie401 closed 7 years ago
How do you delete an event on click on the calendar with an X button option?
https://jsfiddle.net/eddiriarte/yy1rud17/
I was thinking of using something like this but I can't get it work. Thank you!
eventRender: function(event, element) { element.append( "<span class='closeon'>X</span>" ); element.find(".closeon").click(function() { $('#calendar').fullCalendar('removeEvents',event._id); }); }
How do you delete an event on click on the calendar with an X button option?
https://jsfiddle.net/eddiriarte/yy1rud17/
I was thinking of using something like this but I can't get it work. Thank you!
eventRender: function(event, element) { element.append( "<span class='closeon'>X</span>" ); element.find(".closeon").click(function() { $('#calendar').fullCalendar('removeEvents',event._id); }); }