Good morning all, Apologies again if this is a really basic question, but I've searched though the jQuery Docs and am struggling to find a solution.
function lovelyFunction() { $("#lovelyDiv").fadeOut(5000,function(){ alert("Why now?"); }); }; Everything I'm reading in the jQuery Docs, to my understanding, tells me that the alert "Why now" should appear after my lovelyDiv has compleatly faded out. But, for a reason I'm struggling with, the alert "Why now?" appears before my lovelyDiv has even started fading.