This question is similar to this question about animation queues , but the answers in this thread are very specific and not easy to generalize.
In my web application, messages are communicated to the user (information fields, errors and warnings, etc.), outputting divusing, class="alert"for example:
<div class="alert">Login successful</div>
<div class="alert">You have new messages waiting</div>
A page can have any number of warnings, depending on what the user is doing.
I would like to use jQuery animation to display each of the warning boxes in sequence: as soon as one animation ends, the next starts.
The answers in this other question say use a callback, for example:
$('#Div1').slideDown('fast', function(){
$('#Div2').slideDown('fast');
});
, , div . - ?