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
Use it to access class in Javascript.
<script type="text/javascript"> var var_name = document.getElementsByClassName("class_name")[0]; </script>