I need to get all direct children. How is he here:
<div class='1'> <div class='2'> <div class='3'></div> </div> <div class='2'></div> </div>
I need two DIVs with class "2", using one with class "1". Normal JavaScript - no libraries.
(This is the same class in this example, to be more clear. In my need, they have different unknown classes.)
source share