How to iterate through only top level <tr> tags of a table
<p>Hi I want to iterate through only top level means child  tags of a table.Below is my HTML  </p>

<pre><code> &lt;table id="tab1"&gt;
         ---&gt;   &lt;tr&gt;
                   &lt;td&gt;
                   &lt;table&gt;
                         &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
                         &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
                   &lt;/table&gt;
                   &lt;/td&gt;
            &lt;/tr&gt;
         ---&gt;   &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
         ---&gt;   &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;
 &lt;/table&gt;
</code></pre>

<p>If i iterate through all tr tags using the below code  </p>

<pre><code>  $('#tab1 tr').each(function()
  {
      // This will iterate through all the &lt;tr&gt;  ( 5 tags).. 
  });
</code></pre>

<p>But i want to iterate through the  s which i have mentioned with > mark.. You can use the below fiddle to put hands on<br>
<a href="http://jsfiddle.net/AzJRp/1/" rel="nofollow">http://jsfiddle.net/AzJRp/1/</a></p>
