Based on fullcalendar documentation, an event object can have an id to uniquely identify all instances of a particular event.
My question is: If I'm using eventClick to select a particular event, how can I automatically select all instances of that event on the calendar?
In other words, how can I change the properties(in this case background color) of the same event that is happening in different dates just by selecting one of them (this)?
My code looks something like this ('newColor' changes the background-color of the selected event):
eventClick: function(calEvent, jsEvent, view){
$(this).toggleClass('newColor');
}
Right now, my code is only changing the color of the event selected (this).
id
is a unique identifier. You can useclass
names instead to selectevents
having sameclass
– Khawer Zeshan