title: Add class to the last <li> in a group of <ul>
body: <p>I have a group of <code>&lt;ul&gt;</code>'s created dynamically and i need a class added to the last <code>&lt;li&gt;</code> of each one.</p>
  
  <p>I have:</p>
  
  <pre><code>$('ul li:last').each(function(){
      $(this).addClass("last");
  });
  </code></pre>
  
  <p>But this only adds a <code>class="last"</code> to the last <code>&lt;ul&gt;</code> not in all of the <code>&lt;ul&gt;</code>'s.  </p>
  
  <p>I want the last <code>&lt;li&gt;</code> of each <code>&lt;ul&gt;</code> to get added the class, not just the last <code>&lt;ul&gt;</code>.  </p>