Hi Guys, i'm a total noob when it comes to Jquery and i've been trying to learn it but as of now i still don't know how to query this one out.
I have a table structure that looks like this:
<table class="wba_main_table" align="center" border="0" cellpadding="0" cellspacing="0" width="">
<tbody>
<tr>
<td style="display: none;" id="wba_logo_bg">
</td>
</tr>
<tr>
<td style="display: none;" class="line">
</td>
</tr>
<tr>
<td class="wba_topnavBG">
<table>
<tr><td>bla bla bla</td></tr>
</table>
</td>
</tr>
<tr>
<td style="display: none;" class="line">
</td>
</tr>
<tr style="display: none;" class="greyBar">
<td>
</td>
</tr>
<tr>
<td style="display: none;" class="line">
</td>
</tr>
<tr>
<td style="display: none;" class="lightGreyBar">
</td>
</tr>
<tr>
<td><table><tbody><tr><td>
<div id="deep_div1"></div>
</td></tr></tbody></table></td>
</tr>
</table>
And what i wanted to do was to hide all the tr except for the one containing the wba_topnavBG. My strategy was to use the wba_logo_bg as id and select the parents then from there select all the children td which doesn't have the class wba_topnavBG and hide() them all. But i don't know how to write the selection part.
Any help? :) thanks!!
Edit
Forgot to add that inside that td there's another table structure with more tr and tds.
Edit 2
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?
- How can i hide the other tr except for the one containing div deep_div1 and the one with td class wba_topnavBG?
as this new twist is still related to this question, i don't want to create another question in SO.
thanks again !!