JQuery dialog – submit form via ajax

ajaxdialogformsjquery

I'm displaying a large form with lots of validation in a jQuery dialog box, but I'm now wondering if there's anyway of getting it so that once I submit the actual form, it will load via Ajax and stay in the modal window I have open? Not sure if there's anyway of doing this.

Thanks!

Best Solution

Yes, you must hyjack the submit button to perform an ajax GET passing it all the form fields, then return false;