getlementbyclass code example
Example 1: getelementbyclass
var selector = document.getElementsByClassName('class-name');
Example 2: javascript get all classes
var allHiddenElements = document.getElementsByClassName("hidden");
var selector = document.getElementsByClassName('class-name');
var allHiddenElements = document.getElementsByClassName("hidden");