title: Display all items in array using jQuery
body: <p>I have an array that I want to have displayed in HTML..
  I don't want to write multiple lines for posting each item in the array but all should be exactly the same. ie</p>
  <pre><code>var array = [];
  //code that fills the array..
  $('.element').html('&lt;span&gt;'+array+'&lt;/span&gt;');
  </code></pre>
  <p>what I want here is to create a span for each item in the array.</p>