With a combination of the jQuery timers plugin and jQuery fadeOut , you can achieve what you want:
$(function() {
$(this).oneTime(1000, function() {
$('#book').fadeOut('slow', function() {
});
});
});
This will call the function after the DOM is ready (first line). This function will call another function after one second (second line). This other function will cause the item to disappear using the book.
The DOM cannot be “finished” with updateable fields, I don’t know. You can simply make this a normal function (replace the first line with function removeMessage() {and the last line with }. Then add a call to this function in your updatePanel. However, I have not tested it myself.
source
share