js get classname by 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";
document.querySelector('#id-goes-here .class-goes-here');
document.getElementById("myDIV").className = "mystyle";