JavaScript Get Element by Class
var elementsArray = document.getElementsByClassName("someclassname");
Grepper
var elementsArray = document.getElementsByClassName("someclassname");
let elementsArray = document.getElementsByClassName("className");
// OR
let element = document.querySelector(".className");
document.getElementsByClassName('Name');
var elements = document.querySelector(".class");
var elements = document.getElementsByClassName(names); // or:
var elements = rootElement.getElementsByClassName(names);
const whiteBoxes = document.getElementsByClassName("box-white")