$.ajax({ complete : function(jqXHR) { console.log(jqXHR.responseText); } }); 

What will jqXHR.responseText contain in case of an error?

  • one
    Obviously the answer from the server, I believe, with the wrong url or void with a nonexistent address if(!jqXHR.responseText.length) { empty } - Mr. Black
  • one
    $ .ajax has success and error methods. It is more logical to use them. - ilyaplot

0