title: Why Images are not appended to the div
body: <p>Why are the images in the array are not shown in div </p>
  
  <p>I am trying to append the images to the div defined below , but they are not being shown in div .</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;jQuery Hello World Alert box&lt;/title&gt;
  &lt;script type="text/javascript" 
  src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"&gt;  
  &lt;/script&gt;
  &lt;script&gt;
  var content = "";
  var myArray = ['D:/1146Wj.jpg', 'D:/1146Wj.jpg','D:/1146Wj.jpg'];
  myArray.forEach(function (element) {
  alert(element);
    content += "&lt;div&gt;&lt;a href='#'&gt;&lt;img src=" + element + "   /&gt;&lt;/a&gt;&lt;/div&gt;";
   $("#container").html(content);
  });
  
  &lt;/script&gt;
  &lt;/head&gt;
   &lt;script type="text/javascript"&gt;
  $(document).ready(function(){
  $("#cl").click(function(){
  alert("HELLO WORLD!");
  });
  });
  &lt;/script&gt;
  &lt;body&gt;
  &lt;font color="red"&gt;CLICK BELOW BUTTON TO SEE ALERT BOX&lt;/font&gt;
  &lt;br&gt;
  &lt;br&gt;
  &lt;button id="cl"&gt;Click Me&lt;/button&gt;
  &lt;div id="container"&gt;
  &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>