I have a page with a list of locations. When a location is clicked, an AJAX call is made and a map appears in a div on the page. I want a modal popup to appear when the map is clicked.
I use the jQuery plugin simplemodal on other pages for this functionality, and if I put the map on the original page, it performs as expected. But if I try to use it with the map from the AJAX call, I get nothing.
Is there a way to get simplemodal to work on the results of an AJAX call, or is there a better way to do this?
I don't need help with basic functionality . Everything works if it is on the primary page. It just won't work from the AJAX created map that is on the same page. I have tried this with the CSS and the jQuery in the primary page and in the AJAX inserted code, and can't get it to work.
I'd appreciate your help or ideas on how to make this happen.