title: img and p within div using D3JS
body: <p>I want to have a div's containing images and image-titles. I manage to get the images with the following code, but can't combine images and text within div's.</p>
  
  <pre><code>function update(sel) {
          console.log('update')
          console.log(sel)
          update_images(d3.select("#fotoos"), sel);
  }
  
  function update_images(ul, data) {
    var image = ul.selectAll("img").data(data);
    image.exit().remove();
    image.enter().append("img");
    image.attr("class", "foto");
    image.attr("src", function(d) {
        var u = '{{ =URL('download') }}'
        return u.concat("/", d.file) })
  }
  </code></pre>
  
  <p>How can I get the following?</p>
  
  <pre><code>&lt;div&gt;
     &lt;p ...
     &lt;img ...
  &lt;/div&gt;
  </code></pre>
  
  <p>Thank you,
  Richard</p>
  
  <p>Note: The {{  }} code do come from Web2Py</p>