J'ai ce sélecteur:jQuery problème de sélection
$("table.details tbody tr:not(.details)")
Mais je me demande pourquoi cette table intérieure se sélectionnée aussi:
<table class="items details">
<thead>
<tr>
<th style="width: 90%;">Test application</th>
<th style="width: 10%;">Sent to test</th>
</tr>
</thead>
<tbody>
<tr>
<td>6456</td>
<td>8/29/2009</td>
</tr>
<tr class="details">
<td colspan="2">
<table>
<tr>
<td style="width: 100px;">Description:</td>
<td>2312313</td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td>Test URL Test</td>
<td><a href="Test2" title="Visit test application">Test2</a></td>
</tr>
</table>
</td>
</tr>
</tbody>
</table>
Une propriété .length retourne 6, qui est le nombre de au total.
Mais POURQUOI?
Est-ce que toute la table est sélectionnée ou juste un TR de cette table? – jantimon
Juste le TRs est sélectionné – Kordonme