WHen I submit an ajax request for show an image:
$('div.loading').ajaxStart(function(){
$(this).removeClass('none');
}).ajaxComplete(function(){
$(this).addClass('none');
});
However I only want to show this image for some ajax submissions not others which I want to show a different image.
How can I do this?
1 Answer