Updated title to better reflect what I\'m trying to do. In short, there are different constructors for different dom elements, and they don\'t seem to all share a common prototype. I\'m looking for a
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 problem is that the script only