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