what\'s wrong with that?
$(\'body\').append(\"Upload successful!\"); $(\'.message\').delay(2000).remove(); <
And just for kicks, you could do the following, using delay:
$('body').append("Upload successful!"); $('.message').show('fast').delay(2000).hide('fast') $('.message').remove();