how to get the class in js code example
Example 1: javascript get all classes
var allHiddenElements = document.getElementsByClassName("hidden");
Example 2: javascript document object model getElementsByClassName
document.getElementsByClassName('test')