Answer the question
In order to leave comments, you need to log in
Selecting and filtering jQuery elements?
Good afternoon. Please tell me how to write the following selection correctly:
It is necessary to find all elements with the 'select' class inside the block with the 'root' class, but inside their own level, i.e. if there is another 'root' block inside the 'root' block, then its collection of elements should not be in the selection.
<div class='root'>
<div class='select'>
</div>
<div class='select'>
</div>
<div class='select'>
</div>
<div class='root'>
<div class='select'>
</div>
<div class='select'>
</div>
<div class='select'>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question