jQuery ajaxError

This AJAXEvent ajaxError registers a handler to be called when Ajax requests complete with an error.

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, do the following

Add jQuery libs from CDN into head section in HTML page

Write few HTML tags into body section

Add ajaxComplete event into head section

The complete HTML page

Thanks for reading.




Leave a Reply

Your email address will not be published. Required fields are marked *