Answer the question
In order to leave comments, you need to log in
Node selection with jQuery?
There is a structure like this:
<br>
<table><br>
<tr><br>
<td class="tree-node">...</td><br>
</tr><br>
<tr><br>
<td class="tree-sub-node">...</td><br>
</tr><br>
<tr><br>
<td class="tree-sub-node">...</td><br>
</tr><br>
<tr><br>
<td class="tree-sub-node">...</td><br>
</tr><br>
<tr><br>
<td class="tree-node">...</td><br>
</tr><br>
<tr><br>
<td class="tree-sub-node">...</td><br>
</tr><br>
</table><br>
Answer the question
In order to leave comments, you need to log in
The simplest example:
$node = $('.tree-node:first');
$subnodes = [];
while( $node = $node->next('.tree-sub-node') )
{
$subnodes.push( $node );
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question