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

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -