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