Good morning,
I am using the jQuery ajaxComplete Function and I wonder if it would be possible to use it on a specific element (div)?
Example:
yes, you can add specified option for $.ajax action, ie:
$.ajax({
my_option : 'somevalue',
complete: function(){
//..your complete logic
}
});
and then:
$(document).ajaxComplete(function(event,xhr,options){
//if(options.my_option == 'somevalue') { or:
if(options.my_option) {
//..your logic
}
});
good luck :)