Check if tr with specific id is last in a table
<p>Check if tr with specific id is last in a table</p>

<pre><code>&lt;table id="table"&gt;
&lt;tr&gt;
    smthing
&lt;/tr&gt;   
&lt;tr id="test1" class=""tableRows&gt;
    smthing
&lt;/tr&gt;
&lt;tr id="test2" class=""tableRows&gt;
    smthing
&lt;/tr&gt;
&lt;/table&gt;
</code></pre>

<p>i want to do something like</p>

<pre><code>var count=1

$("tr#test&lt;?=count?&gt;").fadeOut("slow")

count--

if($("#table tbody tr.tableRows:last"))
alert("empty - tr with class tableRows")
</code></pre>
