I\'m trying to toggle the visibility of certain DIV elements on a website depending on the class of each DIV. I\'m using a basic JavaScript snippet to toggle them. The probl
Append IDs at the class declaration
.aclass, #hashone, #hashtwo{ ...codes... } document.getElementById( "hashone" ).style.visibility = "hidden";