skip to Main Content

Html – Extra text node in nodelist?

I have a section element having 3 div parent elements, I want to log section children. <section class="section1"> <div class="parent"> <p class="childP">hello</p> </div> <div class="parent"> <p class="childP">bro </div> <div class="parent-3"> <p class="childP">bro </div> </section> const section = document.querySelector('.section1'); when I…

VIEW QUESTION
Back To Top
Search