Form Submit, No Follow-thru

Form Submit, No Follow-thru

Hi,

I have a form that is being submitted through a CMS (ExpressionEngine). The module I am using with the CMS knows the fields and will retrieve and automatically send out the email.  So I don't have to specify the data string or url as it's all done through the module.  The thing is the simplicity is killing me. :)  I have a dialog box that opens and asks for the user's email address to retrieve their forgotten password.  From there I add an onsubmit js call to the module (it dynamically creates the form) for submitting on it's merry little way.  I can get the form to submit just fine, but I don't want it to follow thru.  I want another dialog box to pop open and say your forgotten password has been sent yadda yadda yadda.  So how can I do this?  The following works just fine and dandy for submitting the form, but if I add in a function() {} to the submit, it no longer works.  Can someone please assist me in what I may be doing wrong?  THANK YOU!!!

  1. function formSend() {
            $('#forgotpass').submit();
            }