title: jQuery/Js looping over Codeigniter MySQL outputted data
body: <pre><code>$("#areaCodeList").click(function() {
     //onClick slideDown hidden church lists
  });
  </code></pre>
  
  <p>in Javascript or jQuery how would I loop over multiple outputted database entries? What I need it to do is be able to uniquely identify the different rows and be able to act on each one rather than acting on all. I need the jQuery or Javascript to act like a Php while loop. Does this make sense to anyone?</p>
  
  <pre><code>&lt;div class="areaCodeList" id="areaCodeList"&gt;&lt;?=$row-&gt;areacode." - ".$row-&gt;locational_state;?&gt;&lt;/br&gt;&lt;/div&gt;
  </code></pre>