title: jquery selector before-last
body: <p>I have a dynamic list and need to select the before last item.</p>
  
  <pre><code>&lt;ul class="album"&gt;
      &lt;li id='li-1'&gt;&lt;/li&gt;
      &lt;!-- ... --&gt;
      &lt;li id='li-8'&gt;&lt;/li&gt;
      &lt;li id='li-9'&gt;&lt;/li&gt;
      &lt;li class='drop-placeholder'&gt;drag your favorites here&lt;/li&gt;
  &lt;/ul&gt;
  
  var lastLiId = $(".album li:last").attr("id"); // minus one?
  </code></pre>