title: How to Jquery show only a particular td from this table structure?
body: <p>I  don't know how to query this one out.</p>
  
  <p>I have a table structure that looks like this:</p>
  
  <pre><code>&lt;table class="wba_main_table" align="center" border="0" cellpadding="0" cellspacing="0" width=""&gt;
        &lt;tbody&gt;
          &lt;tr&gt;
            &lt;td style="display: none;" id="wba_logo_bg"&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td style="display: none;" class="line"&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td class="wba_topnavBG"&gt;
            &lt;table&gt;
            &lt;tr&gt;&lt;td&gt;bla bla bla&lt;/td&gt;&lt;/tr&gt; 
            &lt;/table&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td style="display: none;" class="line"&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr style="display: none;" class="greyBar"&gt;
            &lt;td&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td style="display: none;" class="line"&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
            &lt;td style="display: none;" class="lightGreyBar"&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
               &lt;td&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;
                   &lt;div id="deep_div1"&gt;&lt;/div&gt;
               &lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;
          &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>And what I wanted to do was to hide all the tr except for the one containing the <code>wba_topnavBG</code>. My strategy was to use the <code>wba_logo_bg</code> as id and select the parents then from there select all the children td which doesn't have the class <code>wba_topnavBG</code> and <code>hide()</code> them all, but I don't know how to write the selection part.</p>
  
  <p>Any help? :)</p>
  
  <h2>Edit</h2>
  
  <p>Forgot to add that inside that td there's another table structure with more tr and tds.</p>
  
  <h2>Edit 2</h2>
  
  <p>Mmm, it appears now that I have to hide another tr which contains a table which contains a div with an id. can the jquery line be modified to add another thing to look for in it's :has syntax?</p>
  
  <ol>
  <li>How can I hide the other tr except
  for the one containing div <code>deep_div1</code> 
  and the one with td class
  <code>wba_topnavBG</code>?</li>
  </ol>
  
  <p>As this new twist is still related to this question, I don't want to create another question in Stack Overflow.</p>