Question:What is the purpose of using ajaxError() method?
Answer
The ajaxError() method will be execute every time there is an error in AJAX request.
Example given below:$("#result").ajaxError(function()
{
$(this).html("<span>An error occurred.</span>");
})