what's wrong with that?
$('body').append("<div class='message success'>Upload successful!</div>");
$('.message').delay(2000).remove();
I want to append a success message to my html document, but only for 2sec. After that the div should be deleted again.
what am i doing wrong here?
regards
question from:https://stackoverflow.com/questions/3655627/jquery-append-object-remove-it-with-delay