getelementsbyclassname on lcick code example
Example 1: javascript document object model getElementsByClassName
document.getElementsByClassName('test')
Example 2: document getelementsbyclassname not getting all elements
//use this instead
document.querySelectorAll(".myclassname");