check class name in javascript code example
Example: javascript check if element has class
if(document.getElementById("myElmentID").classList.contains("hidden")){
// I have the 'hidden' class
}
if(document.getElementById("myElmentID").classList.contains("hidden")){
// I have the 'hidden' class
}