title: need to generate unlimited number of unique id's with jQuery
body: <p>extreme n00b here... I've got a number of elements (dynamically generated by back end so it could be quite a few) and all need a unique id.  I'm trying to work out how to do this wth jQuery and not doing so well.  Any help is appreciated.</p>
  
  <p>In the code below, I'd want each "bar" div to get a unique id, like id1, id2 etc etc </p>
  
  <pre><code>&lt;div class="foo"&gt;
      &lt;ul  class="bar"&gt;
  &lt;/ul&gt;
      &lt;ul  class="bar"&gt;
  &lt;/ul&gt;
      &lt;ul  class="bar"&gt;
  &lt;/ul&gt;
      &lt;ul  class="bar"&gt;
  &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>