Detect Form Complete JQuery
<p>i have a form which is within a div, the form contains an input type=file. I submit the form using </p>

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

<p>but i want to detect when the form has actually completed submitting. I have tried:</p>

<pre><code>$("#div form").submit(function()
{
 alert("submitted")
});
</code></pre>

<p>But this didnt seem to work, the form was no longer submitted and i wouldn't get the alert either. </p>

<p>Then i tried: </p>

<pre><code>$("#div form").submit(showalert());

function showalert()
{
 alert("show");
}
</code></pre>

<p>this then showed the alert but still didnt submit. </p>

<p>Anything I'm missing? </p>

<p>Thanks </p>

<p>Marcel.</p>
