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