[jQuery] Using .fadeOut() then .html("")
I have some text that is in a div that I would like to fade out, then
I want to clear the HTML of that div. But, it seems that the fadeOut
doesn't get run before the HTML gets cleared:
setTimeout(function() {
$("#ajaxResult").fadeOut("slow").html("");
},
5000);
Did I do something wrong here?