title: leaflet how to make dynamic picture popup using js
body: <p>hello I am using leaflet to display dynamic images on a map:
  I have a var img which represent the url of image src</p>
  
  <pre><code>var img="http://xx.xx.xx.xx/"
  
  $("&lt;img/&gt;").attr("src", img).appendTo("#images");
  </code></pre>
  
  <p>And I have a popup window(HTML) which include my images id:images</p>
  
  <pre><code> var marker = L.marker([lat,lng]).bindPopup('&lt;div id="images"&gt;&lt;/div&gt;').addTo(map);
  </code></pre>
  
  <p>But the picture is not showing on the popup? anyone has simply solution? thanks</p>