Interactive date picker color change based on different events in mobile

We are using Interaction date picker with some  events for each events we need to display different color codes.

We have the class "has_event" in default date picker by using this we are trying to achieve the color for each type of events.

We are using this js for adding the class name to the has event. But its throwing the error .

Cannot read properties of undefined (reading add undefined).

var selector= ".has-event";


Can someone help us on this.



Hello Pavithra,

the error occur when you have some issue with JavaScript code or something similar, if you will share oml with JavaScript code it would be great and we can demonstrate it ,

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.