jQuery ajaxSuccess

This AjaxEvent ajaxSuccess registers a handler to be executed whenever an Ajax request completes successfully.

Whenever an Ajax request completes successfully, jQuery triggers the ajaxSuccess event. Any and all handlers that have been registered with the .ajaxSuccess() 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

When the user clicks the element with class trigger and the Ajax request is completed successfully, the log message is displayed.

Thanks for reading.

data.txt file





Leave a Reply

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