title: javascript /jQuery - For Loop
body: <p>I have a query ajax response which I then use to set the array variables.
  Is there anyway to use a 'For Loop' to change to #name so that I don't have to write out a line of code to set each array element.</p>
  
  <pre><code>array[0]=$('#event00',response).html();
  array[1]=$('#event01',response).html();
  array[2]=$('#event02',response).html();
  array[3]=$('#event03',response).html();
  </code></pre>
  
  <p>So '#event00' could be used in a for loop to change to '#event01' etc</p>