A little bit tricky question.

I have a CartoDb Map, with lots of features with data filled using Mustache Template. Features data contains HyperLinks. Clicking on Hyperlinks opens a new tab and this is the problem.

I want clicking on those Hyperlinks show the needed data in Popup window. The issue here is that data filled by Mustache template seems to be filled in a separate DOM than the main one loaded with the entire web application. Which means any JS or JQuery library loaded for example cannot access any element id loaded by Mustache Template.

How can I make JQuery or JavaScript access Hyperlinks rendered by Mustache Template ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.