<p>Here's the quick and skinny of my issue:</p>

<pre>$("a").toggle(function() { /*function A*/ }, function() { /*function B*/ });</pre>

<p>Inside <code>function A</code> a form is displayed.  If the user successfully completes the form, the form is hidden again (returning to it's original state).</p>

<p>Inside <code>function B</code> the same form is hidden.</p>

<p>The theory behind this is that the user can choose to display the form and fill it out, or they can click again and have the form go back into hiding.  </p>

<p>Now my question is this: currently, if the user fills out the form successfully--and it goes into hiding--the user would have to click on the link <strong><em>twice</em></strong> before returning to the toggle state that displays the form.</p>

<p>Is there anyway to programmatically reset the toggle switch to its initial state?</p>

jQuery has two
```
.toggle()
```
methods:
```
.toggle()
```
Toggles each of the set of matched
  elements. If they are shown, toggle
  makes them hidden. If they are hidden,
  toggle makes them shown.
```
.toggle(even, odd)
```
Toggle between two function calls every other click.
In this case you want the first one. Something like this should do the trick:
```
```
$("a").click(function() {
    $("#theForm").toggle();
});
```
```