I am using a spinner using tutorial shown here
there are 3 functions running ajax calls I want to hide it for only a specific function running ajax call, how to do this ?
Currently my code for adding spinner for ajax call is this :
$(document).ready(function(){
$("#spinner").bind("ajaxSend", function() {
$(this).show();
}).bind("ajaxStop", function() {
$(this).hide();
}).bind("ajaxError", function() {
$(this).hide();
});
});
its exactly what is shown in the tutorial which I've linked above. Now how do I make it work only for 2 ajax calling functions out of 3 ?
ps : Should I unbind it and bind it everytime ??