Search code examples
jqueryajaxformssubmitjqxhr

How can we access to "server response" of "jqXHR" of ajaxSubmit function?


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


Solution

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