JavaScript Get Element według klasy
var elementsArray = document.getElementsByClassName("someclassname");
Grepper
var elementsArray = document.getElementsByClassName("someclassname");
document.getElementsByClassName(names)