js get all by classname code example
Example 1: javascript get element by class
var elementsArray = document.getElementsByClassName("someclassname");
Example 2: document getelementsbyclassname not getting all elements
//use this instead
document.querySelectorAll(".myclassname");