Forms plugin – how to handle AJAX response?
OK, never worked with AJAX form submission before but now’s the time. I have a form in an overlayed div which should not reload the page on submit. Therefore I’m using the form plugin to do the submission via AJAX (with the
ajaxForm() function). Usually (without JS) the form would reload the page with the success message in it. The problem is now that the PHP script that processes the form (and on which I have no influence) returns the entire page as HTML result into the overlayed div and I just need the success message. How would I filter the result that is returned by AJAX?