javascript check if element does not have class 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
}