2
I’m wearing this:
eventClick: function (calEvent, jsEvent, view) {
$('#calendar').fullCalendar('removeEvents', event.id);
},
My database has: id
, title
, start
, end
, username
that I tried to change "event.id"
for "id"
, but nothing seems to work. When I click on the event, all events are removed from the calendar, but not from the database. If I refresh the page they appear again.
Either you don’t have the full code or there’s a problem:
event
is a variable that does not exist. Have you seen in the browser if this javascript code is giving errors?– Miguel Mesquita Alfaiate
Instead of using Event.id you have to use calEvent.id or change the name 'calEvent' to Event And incidentally, to remove only one event you should use 'removeEvent' in the singular, otherwise it deletes all the same.
– Nathalia