get class name from string js 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();