How to hide a div on one click and unhide it on another click?
<p>i am wanting to add an else statement to my javascript, currently if a user clicks a link then a div hides, but i want it so that if they click the link again the div unhides. can someone please show me how i might do this thanks?</p>

<pre><code>&lt;a id="myLink" href="javascript:void(0)" onclick="javascript:myLinkButtonClick();"&gt;&lt;h3 id="bobcontent1-title" class="handcursor"&gt;&lt;img src="assets/img/help_support/howdo.png" width="302" height="45" /&gt;&lt;/a&gt;

&lt;script&gt;
function myLinkButtonClick()
{
    $(".nswp-frame2").hide();
}
&lt;/script&gt;
</code></pre>
