Jquery-Delete all the row if first td of row does not have the id with given value
<p>I have a table with many rows. from which i want to delete all the rows except the row, of which first td has a given id.</p>

<p>i am in half way </p>

<pre><code> &lt;tr&gt;
   &lt;td id="1" class="td_link" onclick="viewPointDetails(1)"&gt;Barrackpur&lt;/td&gt;
   &lt;td class="td_link" id="11" class="edit_client" onclick="editPoint(1)"&gt;India&lt;/td&gt;
 &lt;/tr&gt;


 &lt;tr&gt;
   &lt;td id="2" class="td_link" onclick="viewPointDetails(2)"&gt;Madiwala&lt;/td&gt;
   &lt;td class="td_link" id="11" class="edit_client" onclick="editPoint(1)"&gt;India&lt;/td&gt;
 &lt;/tr&gt;
</code></pre>

<p>​</p>

<p>and my jquery;</p>

<pre><code>   $('tr').each(function () {   
       if first td does not have given  id say 1  then delete this row.
   });  
</code></pre>

<p>my First row is header. so i dont want this to be checked(do not want this row to be deleted).</p>
