select all dom elements with class name code example Example: javascript get all classes var allHiddenElements = document.getElementsByClassName("hidden");