How to execute jquery action only when the previous finishes
<pre><code>        $("#show-sidebar").click(function () {
            $(this).fadeOut("fast");

            $("#sidebar").animate({
                marginLeft: "0"
            }, "fast");

            $("#content").toggleClass("full");
        });
</code></pre>

<p>What I wanto to do is, I guess, pretty simple: For each of this actions to execute, I need it to wait untill the previous one finishes.</p>
