Override event.preventDefault()
<p>I have the following jQuery Ajax code:</p>

<pre><code>    $("#new_form").submit(function (event) {
        event.preventDefault();
        $.post("/home/new_ajax", $(this).serialize(), function (data) {
            if (data.errors == '') {
                $("#new_form").submit();
            } else {
                alert(data.errors);
            }
        }, "json");
    });
</code></pre>

<p>However, due to </p>

<pre><code>event.preventDefault();
</code></pre>

<p>this line doesn't work:</p>

<pre><code> $("#new_form").submit();
</code></pre>

<p>Is there any way to get around this?</p>
