How to write jquery If else statement?
<p>This code shows frm01:  </p>

<pre><code>$(document).ready(function() {
$("#reg").click(function () {
$("#frm01").show("slide", { direction: "down" }, 1000);
});
});
</code></pre>

<p>But I want to hide frm01 if it is allready visible, and vice versa.
How could I do this, please ?</p>
