Skip to main content

Element.querySelector() is the best way;

const parent = document.querySelector('.parent'); // Do anything next //When you want parent.querySelector('.child1'); // <div class="child1"> 

simple

Element.querySelector() is the best way;

const parent = document.querySelector('.parent'); // Do anything next //When you want parent.querySelector('.child1'); // <div class="child1"> 

simple

Element.querySelector() is the best way;

const parent = document.querySelector('.parent'); // Do anything next //When you want parent.querySelector('.child1'); // <div class="child1"> 
Source Link
FATCHOLA
  • 451
  • 3
  • 4

Element.querySelector() is the best way;

const parent = document.querySelector('.parent'); // Do anything next //When you want parent.querySelector('.child1'); // <div class="child1"> 

simple