title: jquery load() not working with array loop
body: <p>What I am trying to do is to store a list of hundreds of files in an array and use jquery load() function to load their content one after one by a loop.</p>
  
  <p>I have very little knowledge of jquery and javascript, and this is what I managed to write, but it is not working.</p>
  
  <pre><code>var files=['index1c.html','index23c.html'];
  
  for(var index = 0; index &lt; files.length; index++){
      var file = files[index];
  
  $('#result').load('file .desc');
  }
  </code></pre>
  
  <p>I think that I have some problem in variable file given in <code>load()</code> , is it the right way?
  It is working fine if I directly write a single file name in place of <code>file</code> like below:</p>
  
  <pre><code>$('#result').load('index1c.html .desc');
  </code></pre>