Positioning the added tr within the table
<p>I would like to add table row to my table body, which I can achieve with this code:</p>

<pre><code>var tr = $('&lt;tr/&gt;');
$('#myTable &gt; tbody:last').append(tr);
</code></pre>

<p>However some pages could have too many rows and hence I create dynamically a paginator in the last row.</p>

<p>In those cases if I used the code above the new <code>tr</code> would be appended below the paginator, which isn't nice.</p>

<p>My paginator <code>tr</code> has the id <code>&lt;tr id="paginator_tr"&gt;</code>  I wonder if I could alter this code </p>

<pre><code>$('#myTable &gt; tbody:last').append(tr);
</code></pre>

<p>with a condition to check if the last tr has the <code>id = "paginator_tr"</code> if so, then add the new row before that paginator row. Otherwise simply append the new row as the last row.</p>

<p>Are conditionals like this possible in jquery?</p>
