1An even simpler way to do this is to use jQuery's toggleClass() method
2
3CSS
4.newClass{visibility: hidden}
5
6HTML
7<a href="#" class=trigger>Trigger Element </a>
8<div class="hidden_element">Some Content</div>
9
10JS
11$(document).ready(function(){
12 $(".trigger").click(function(){
13 $(".hidden_element").toggleClass("newClass");
14 });
15});