Question

ajaxSubmit return form element. How can we access to "server response" of "jqXHR" of its ajax request?

Was it helpful?

Solution 2

        var response,xhr;
        $(form).ajaxSubmit({
            success:function (d, t, x) {                  
                response=d;
                xhr=x;
            }
        });

OTHER TIPS

You'll need to access the success: event handler.

See the examples on their page: http://jquery.malsup.com/form/#ajaxSubmit

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top