0

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

Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173

2 Answers2

0

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

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

Dutchie432
  • 28,798
  • 20
  • 92
  • 109
0
        var response,xhr;
        $(form).ajaxSubmit({
            success:function (d, t, x) {                  
                response=d;
                xhr=x;
            }
        });
Handsome Nerd
  • 17,114
  • 22
  • 95
  • 173