get value by class javascript code example Example: javascript get all elements by class starting with document.querySelectorAll("[class^=page]")