$.ajax({ complete : function(jqXHR) { console.log(jqXHR.responseText); } });
What will jqXHR.responseText contain in case of an error?
if(!jqXHR.responseText.length) { empty }
Source: https://ru.stackoverflow.com/questions/535999/More articles:What method is called when using 'Intent.FLAG_ACTIVITY_CLEAR_TASK'?Using NSUndoManager in SwiftAdding Commands for UserControl wpfHow to place a lot of Yandex maps on one page without id?Member functions in numpy records?Displaying sections and information block elementsTwo-dimensional array, delete rowsRegular expression to remove links that contain Latin in the textHow to move the graph in Excel to a specific cell?Pass an object on pure JS using AJAXAll Articles
if(!jqXHR.responseText.length) { empty }- Mr. Black