html - How to access content of leaflet popups -
i creating leaflet-popup set of html elements:
var popupbox = document.createelement('div'); $(popupbox) .addclass('popup-box') .attr("id", "mypopup"); var popupboxcontent = document.createelement('div'); $(popupboxcontent) .addclass('some-class') .html('foo') .appendto(popupbox); myleafletobject.bindpopup(popupbox);
unfortunatly not able access elements later on. example trying do:
$('popup').append(somenewhtmlelement)
fails. can help?
Comments
Post a Comment