Hi, I have created a js class to trigger the opening of a specific content area modal, and it functions perfectly when the class is assigned to any element within X-Theme. I would like to be able to trigger the modal by clicking on a particular element within a map embedded into my page (the mapsvg plugin). I have unsuccessfully tried assigning the same js class into the specific map elements that I would like to use as the trigger for the modal. (for example, a text-based hyperlink, or better again the location map markers on the map. This is the code that works for any cornerstone elements, but not for the 3rd-party elements.
jQuery( function($){
$('.open-content-area-modal-1').on( 'click', function(e){
e.preventDefault();
$('#content-area-modal-1-anchor-toggle')[0].click();
});
});
and below is a screenshot showing the elements that I would like to be able to use as click triggers for the modal

thanks,

