on-internet
← Community

How to add any event in fullcalendar on click of button?

Stack Overflow ·

I have added ('+') button on each day/ cells. var add_button = '<input type="button" value="+" />'; $(".fc-day-number").prepend(add_button); How to add event after clicking on this ('+') button, able to do the same on click of any day by writing this: dayClick: function(date) { addEvent(date); }, function addEvent(date) { var newEvent = { title: timeSlot, start: date.format() }; }

Comments

Sign in or sign up to comment and upvote.

No comments yet.