I have this code, that executes when a link is clicked:
$.get(file.html, function(data) {
$('selector_1').html($(data).find('selector_2').html());
});
I would like to modify the code in such a way that when I click a link, the $.get command runs while selector_1 fades out, and when the HTML of selector_1 is placed, it fades back in.
How can this be done?