how to fine an element by classname code example
Example: get element by class
var elements = document.getElementsByClassName(names); // or:
var elements = rootElement.getElementsByClassName(names);
var elements = document.getElementsByClassName(names); // or:
var elements = rootElement.getElementsByClassName(names);