javascript get all elements with class name code example
Example 1: javascript get all classes
var allHiddenElements = document.getElementsByClassName("hidden");
Example 2: javascript get all elements by class starting with
document.querySelectorAll("[class^=page]")