Close jQuery Modal Dialog on Form Submit
<p>I have a modal dialog which has a form. When a user clicks the submit button on the dialog, I want the form to be submitted, and it works fine. I am using ajax request, hence using <strong>return false;</strong> in the submit. Here's my code:</p>

<pre><code>    $("#new_account_class").live("submit", function(){
        $.post(this.action, $(this).serialize(), null, "script");
        return false;
    });
</code></pre>

<p>Now, I want the dialog to be closed within the same event. The problem is that, anything I write after <strong>return false;</strong> is not executed, and I cannot close the dialog before the <strong>return false</strong>. But there must be a way out, can anyone help, please? Thanks.</p>
