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!
You MUST check out this wonderful jquery form plugin for
ajaxifyingyour forms. The beauty of it is that if you have put validations insidepatternattribute of your inputs (which I prefer to do rather than writing javascript snippets for every input field) the form will get submitted only when each of the validations passes. In short the default behavior of your submit event will change and you will have an exact replica of yourREQUEST, except that this time it is inajax.