Javascript if the element has a class value="1" allow the function to execute 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
}