JavaScript Get Element by Class
var elementsArray = document.getElementsByClassName("someclassname");
Grepper
var elementsArray = document.getElementsByClassName("someclassname");
var elements = document.querySelector(".class");
const whiteBoxes = document.getElementsByClassName("box-white")
document.querySelector('#id-goes-here .class-goes-here');
// HazaaZOOZ - javaScript- How to get element by id
// inside first element by class javascript
var targetDiv = document.getElementById("YourId").getElementsByClassName("YourClass")[0];
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];
targetDiv.textContent = "Goodbye world!";