6
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 in relation to the element .pai
. Soon I would have only 2 results (item1
and item2
) disregarding item3
.
I must do this without regard to
id
, because I used him on this example just to make the question clearer. If possible, also disregard theform
.
Thank you for the @Erick-gallani reply , but I would not like to consider the
form
, I’ll edit the question.– Jedaias Rodrigues
@Jedaiasrodrigues is there a predefined hierarchy? Or is it changeable? Type will always be the class . parent and dpeois an element and then the child elements?
– Erick Gallani
@Jedaiasrodrigues see the update in my reply
– Erick Gallani