Hiding and showing content is MUCH easier with the magic of jQuery. Here is a simple demo of the jQuery .toggle() function.
Here is the JavaScript needed to run this demo:
1 2 3 4 5 6 | <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> function toggleDiv(divId) { $("#"+divId).toggle(); } </script> |