javascript get classname in id code example
Example 1: javascript get element using id and class name
document.querySelector('#id-goes-here .class-goes-here');
Example 2: javascript get class name
document.getElementById("myDIV").className = "mystyle";