I want to append a class .Appear only after ensuring the element has been removed completely..How can I achieve this?
<html>
<body>
<div id="Append"></div>
</body>
</html>
$(function(){
$(".Appear").stop().fadeOut("fast",function(){
$(this).remove();
alert(123);
})
$("#Append").append("<span class='Appear'>Appear</span>"); alert(8);
})
You could do this:
Live example: http://jsfiddle.net/VGp2U/