Is it possible to pass an identifier for a particular div
element to a function, where the function will display a loading image that covers the entire div
, and then pass the same identifier to another function to hide the loading image? I am looking to create a versatile solution here rather than something specific.
jQuery.ajaxSetup({
beforeSend: function() {
$('#loaderDiv').show();
},
complete: function(){
$('#loaderDiv').hide();
},
success: function() {}
});
I want to display a loading icon uniquely for each individual div
. I do not want a single large overlay that covers the entire page. Can someone provide assistance with this?