I have the following context:
<div class='pai' id='item'>
<div class='form'>
<div class='filho' id='item1'>
<div class='filho' id='item3'>
</div>
</div>
<div class='filho' id='item2'>
</div>
</div>
</div>
I'd like to get the elements .filho
of first level relative to the .pai
element. So I would only have 2 results ( item1
and item2
) disregarding item3
.
I should do this without taking into account
id
, since I used it in that example to make the question clearer. If possible, also disregardform
.