I want to delete an DOM element right after fading out. What I did so far is
$(element).click(function() { $(this).fadeOut(500, function() { $().remove(this)
You're using the remove() function wrongly.
$(element).click(function() { $(this).fadeOut(500, function() { $(this).remove(); }); });