document.getElementByClass("className")//This method only returns the child element of the specified Class.
Fixed:
document.getElementsByClassName("className")//This method returns all elements inside the whole document by the class you specified.document.getElementById("someElement").getElementsByClassName("className")//It works in all elements of the DOM, this will return all elements by the class you specify inside the element you want
Just sharing my learning experiences in tech. Follow for Front-end related content in REACT
Fun fact: I love coffee, especially caramel lattes, and cappuccinos
Location
Baltimore, MD
Education
Flatiron School | New York City College of Technology
Just a little fix in:
Fixed:
Good job 😄
Thanks, just updated it.
good one