title: print array with js and add html with jQuery
body: <p>i want to print an array with js and just add to every element some data with html()</p>
  
  <p>the code i use is :</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  $(document).ready(function() {
   var testArray = ["test1","test2","test3","test4"];
  
   for(var i=0;i&lt;testArray.length;i++){
   document.write(" " +testArray[i]+"&lt;br /&gt;").html("is the best");
   }
  });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>but it doesnt works.</p>