In jQuery, the ajaxStart()
method is used to specify a function that runs when an AJAX request starts.
$(document).ajaxStart(function());
This method accepts only one parameter that is a function that gets invoked when the request starts.
We click the “Get Product Data” button and make an AJAX request here to get product details. We do this between line 3 and line 19 in the “JavaScript” tab.
When the AJAX request starts, the ajaxStart()
method will be invoked.
RELATED TAGS
CONTRIBUTOR
View all Courses