Hello Dear Reader,

I am stuck with the following problem. I've read the whole
documentation of jQuery about traversing and selecting DOM nodes and
found that i can select all nodes that contain a certain type of node
- the example was $('p[a]'); all paragraphs that contain a link
(anchor). But for my surprise i was unable to select a table row which
contains a table header like this $('tr[th]').
I have the following data structure
<table border="1" class="rates">
<tr><th>Description</th></tr>
<tr><td>xxx</td></tr>
<tr><td>xxx</td></tr>
<tr><td>xxx</td></tr>
<tr><td>xxx</td></tr>
<tr><th>Description</th></tr>
<tr><td>xxx</td></tr>
<tr><td>xxx</td></tr>
<tr><td>xxx</td></tr>
<tr><td>xxx</td></tr>

and i want to .remove() all rows that contain <th> but the proposed
selector tr[th] isn't useful
please help
Thank you in advance,
Kiril Kirov

Reply via email to