get element in class javascript code example
Example 1: javascript get element by class
var elementsArray = document.getElementsByClassName("someclassname");
Example 2: Javascript change element class
document.getElementById("myElementID").classList.add('myClassName');
document.getElementById("myElementID").classList.remove('myClassName');