Thanks twocandles,
I have stuck "return true;" everywhere I think you might be referring to, but still no go.
Could you show me where this needs to go?
Thank you!
Main Topics
Browse All TopicsI have a form that is being valdiated with jQuery validate plugin. On clicking submit, and after form has been succesfully validated, I want a dialog confirmation to appear, then on clicking OK, the form submits.
See my code below. The Dialog opens fine. Dialog works fine, but the form does not submit when OK is clicked.
My guess is the .submit() call is sending the process back into the validate() process, causing some kind of loop, but I can't think of any other way to do this.
Any suggestions on what I am doing wrong here will be greatly appreciated.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
"dialog p" is a standard CSS selector for "the <p> tag inside the div tag with id="dialog".
This selector is for placement of the text, which is working fine and processing get's past this point without a hitch. $('#dialog p').empty(); is working fine as the dialog is being emptied, but it is the $("#purchase_credit").subm
Thanks again.
Hasn't helped. If I remvoe the .empty() completely, the dialog content are duplicated, which confirms really that the process is just looping back in.
It looks like the problem is not a javascript one, but rather a validation one. When I submit the form, it goes back into validation which on success then goes back to the dialog and round we go again.
I need to be able to set some kind of bypass on the validation so I can submit the form without running through the validation.
Business Accounts
Answer for Membership
by: twocandlesPosted on 2009-04-03 at 05:44:28ID: 24059205
Add a return value (true or false) at the end of the dialog function.
The form won't submit unless the function you're calling for submitting returns true.