Selecting <tr> elements that do not contain <th> as descendents
Hello, all.
I try to follow the book example and try to select <tr> elements that do not contain <th> as descendents.
I try to use the selector $('tr:not([th]):odd') against the following table.
<table>
<tr>
<th>Title</th>
</tr>
<tr>
<td>Field 0</td>
</tr>
<tr>
<td>Field 1</td>
</tr>
<tr>
<td>Field 2</td>
</tr>
</table>
However, it keeps on saying the odd count as 2, rather than 1.
Please help.
Thanks!