display an alert message on successfull submission of a form
<p>I have the following jquery method in my javascript file which calls <code>.submit()</code> method to submit a form:</p>

<pre><code>var actionOfForm = $("#custom_targeting_param_form").attr('action');
actionOfForm = actionOfForm.replace('#export','');
actionOfForm = actionOfForm+'#export';
$("#custom_targeting_param_form").attr('action',actionOfForm);
try{
    $("#custom_targeting_param_form").submit();
    $("#showOrExportCustomTargetingReport").val('saveReport');
    alert('Report Saved Successfully');
}catch(e){
    //alert("ERROR OCCURRED :: "+e); 
}
</code></pre>

<p>Now what I want is to alert a message "Your form has been submitted successfully" on the successful submission of "custom_targeting_param_form".</p>

<p>As I have used the alert here, it happens prior to the actual submission.
Please help.</p>
