Hi I have the next strucutre in a web:
<section class="item-list clearfix jq-itemList">
<section id="cart-section" class="col-md-3 col-xs-12 col-sm-12 item" displaynamemaxlength="50" data="1111" style="height: 562px;">
</section>
<section id="cart-section" class="col-md-3 col-xs-12 col-sm-12 item" displaynamemaxlength="50" data="2222" style="height: 562px;">
</section>
<section id="cart-section" class="col-md-3 col-xs-12 col-sm-12 item" displaynamemaxlength="50" data="3333" style="height: 562px;">
</section>
</section>
How I can iterate over the nested sections inside the parent section with pure javascript?
I tried with something like:
document.getElementById("section").getElementsByTagName("section");
but is not working, what is the best approach?
Thanks!