I have the following jquery method in my javascript file which calls `.submit()` method to submit a form:

```
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); 
}

```

Now what I want is to alert a message "Your form has been submitted successfully" on the successful submission of "custom\_targeting\_param\_form".

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