how to update Sr. No. COLUMN after removing a TR from TABLE
<p>i have a table like  </p>

<pre><code>&lt;table&gt;
&lt;tr&gt;
    &lt;td&gt;Sr. No.&lt;/td&gt;
    &lt;td&gt; Name&lt;/td&gt; 
    &lt;td&gt;$nbsp;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;1&lt;/td&gt;
    &lt;td&gt;abc&lt;/td&gt;
    &lt;td&gt;remove button&lt;/td&gt;

&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;2&lt;/td&gt;
    &lt;td&gt;xyz&lt;/td&gt;
    &lt;td&gt;remove button&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
    &lt;td&gt;3&lt;/td&gt;
    &lt;td&gt;def&lt;/td&gt;
    &lt;td&gt;remove button&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p></p>

<p>onclick of ' remove button ' i send ajax request &amp; after successful response i remove the respective TR using  $('#id_of_tr').remove();.</p>

<p>till here everything goes fine but now i want to update Sr. No.s of each row. Because Initially order  is 1 2 3 , when i remove second row then it becames 1 3 which i want to update it to 1 2.</p>

<p>I hope this would help. </p>
