javascript how to get all elements within a class 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]")