Question is simple. Not using jQuery... how do I get the value of class value in a DIV using regular JavaScript?
Thanks.
get a reference to the div and use .className
document.getElementById('someDiv').className
getElementById, it might be from the list returned by getElementsByTagName, or you might navigate to it from another element via childNodes, parentNode, etc. Details: w3.org/TR/2000/REC-DOM-Level-2-Core-20001113 | w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109 | w3.org/TR/DOM-Level-3-CoreclassName right away.