$(document).ready(function(e) {
$('.holder').each(function()
{
$(this).addClass('dummy');
setTimeout( function () {
$('.dummy').children('.box').slideDown('300');
},2000);
});
});
I have n number of <div>
inside another <div class='holder'>
. So I thought of adding some effects to each child <div>
. But the problem is all the child <div>
inside the holder is sliding down simultaneously. It seems it does not obey the setTimeout()
. Why this happens?