How to get the id of next tr in table using jquery?
<pre><code>&lt;table&gt;
&lt;tr id ="tr_id_1"&gt;
    &lt;td &gt;
        Blah
    &lt;/td
    &lt;td&gt;
        Blah
    &lt;/td&gt;
&lt;/tr&gt;
&lt;tr id ="tr_id_2"&gt;
    &lt;td&gt;
        Blah
    &lt;/td&gt;
    &lt;td&gt;
    Blah
    &lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
</code></pre>

<p>i have got the id of first tr using jquery </p>

<pre><code>var first_tr_id = tr_id_1     // id of first tr
</code></pre>

<p>now by using this id how to get the id of next tr
   i have tried like this </p>

<pre><code>var nextId = ('#'+first_tr_id ).next("tr").attr("id");
</code></pre>

<p>but its giving <strong>("#" + row_id).next is not a function</strong> error ..</p>
