.ajaxError() Returns: jQuery .ajaxError(handler(event, jqXHR, ajaxSettings, thrownError)) handler(event, jqXHR, ajaxSettings, thrownError) The function to be invoked. Register a handler to be called when Ajax requests complete with an error. This is an Ajax Event. Whenever an Ajax request completes with an error, jQuery triggers the ajaxError event. Any and all handlers that have been registered with the .ajaxError() method are executed at this time. To observe this method in action, set up a basic Ajax load request. Trigger Attach the event handler to any element: $("div.log").ajaxError(function() { $(this).text( "Triggered ajaxError handler." ); }); Now, make an Ajax request using any jQuery method: $("button.trigger").click(function() { $("div.result").load( "ajax/missing.html" ); }); When the user clicks the button and the Ajax request fails, because the requested file is missing, the log message is display...