Look at my code here
$('#UpdatesButton').click(function() {
$('.content').fadeOut(200, function() {
$(".content").empty(function() {
$('.content').load('Pages/Updates.php', function() {
$('.content').fadeIn(200);
});
});
});
});
Because .empty() don't accept any arguments, my code stops on the line where .empty function is (https://api.jquery.com/empty/), what I am wishing to do is to somehow continue execution of .load and .fadeIn functions right after .empty completed it's own execution, but it seems impossible, is there alternatives to empty the .content (which is a DIV container)?
.emptyisn't asynchronous. Its execution happens synchronously.