javascript check classname

 

 

 

 

Can some one help me with javascript. Hi, I am working on javascript.alert("this.className is undefined here" this.className ) Tutorials of (Javascript check for classname) by Thanwya5stars.var myText document.getElementById(test) .innerHTML "Yes, theres the same name" In order to check class of the div, we can use a simple method called hasClass.