javascript get class name that is a variable code example
Example 1: javascript get class name
document.getElementById("myDIV").className = "mystyle";
Example 2: how get class name
String className = this.getClass().getSimpleName();
document.getElementById("myDIV").className = "mystyle";
String className = this.getClass().getSimpleName();