On my HTML page, I have 4 list items and the following jQuery code:
$('li').hide().each(function() {
$(this).delay(500).fadeIn(1000);
});
I assumed that the statement inside the .each () function would be run for the first element of the list, would be completed, and then it would be run for the second element of the list, etc.
However, all four list items disappear at exactly the same time. Does this mean that the operator works in parallel for all elements of the list?
Is there a way to make list items disappear one at a time?
source
share