how to access the value of a classname for html elements code example
Example: Javascript change element class
document.getElementById("myElementID").classList.add('myClassName');
document.getElementById("myElementID").classList.remove('myClassName');