javascript select all element by class code example Example: javascript get all classes var allHiddenElements = document.getElementsByClassName("hidden");