how do i get the last element of a $.each
<p>i have this</p>

<pre><code>     $.each(data, function (url) {
      $("ul").append($("&lt;li class='horizontal'&gt;&lt;/li&gt;").html(this.title));
    });
</code></pre>

<p>I want to add the class last to the last one...how would i do that</p>
