a button, when I click it, it logs all the children elements of the parent node of the button by this code: 
                  
                  
                  console.log(e.target.parentNode.children)
                  
                  
                  It ouputs: HTMLCollection(3) [div.question, div.second, button]
                  
                  
                   Can somebody point out how can I select div.second element?
                  
                  
                
e.target.parentNode.children[1]
e.target.parentNode.querySelector('div.second')
Обсуждают сегодня