jquery toggle function open/close
<p>Trying to do a function that does "A" when toggle open and "B" when toggle close.</p>

<p>Code:</p>

<pre><code>function awesome_toggle()
{
    $(".button").click(function()
    {
        $("content").toggle(
            function()
            {
                /* Do "A" */
            },
            function()
            {
                /* Do "B" */
            }
        );
    });
}
</code></pre>

<p>This code doesn't seem to work and I can't figure out why. When I use only one function, so I stop the code after /* Do "A" */ it works but when I add the /* Do "B" */ function it stops working. What is wrong?</p>

<p>jquery version: ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js</p>
