Topic: How to get calendar event id when clicking on event?

QuretecDev priority asked 1 year ago

Expected behavior

Using calendar as read-only. Want to navigate user to custom event page. Get custom event id when clicking on event.

Actual behavior

Unable to link to id.

Resources (screenshots, code snippets etc.) specifies how to add on click event.

document.getElementsByClassName('event').forEach((event) => {
  event.addEventListener('click', () => {
    // does not work
    // how to get the custom attribute id?
}); specifies assigning custom id to event.

QuretecDev priority answered 1 year ago

Thank you, works nicely!

Kamila Pieńkowska staff answered 1 year ago

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB Standard
  • MDB Version: MDB5 4.3.0
  • Device: desktop
  • Browser: Firefox
  • OS: Windows
  • Provided sample code: No
  • Provided link: Yes