getelementbyclass

JavaScript
var elementsArray = document.getElementsByClassName("someclassname");var selector = document.getElementsByClassName('class-name');var allHiddenElements = document.getElementsByClassName("hidden");
Source

Also in JavaScript: