jQuery delaying an each loop and trigger
<p>I'm using the following code to delay a trigger looping through a list of li items</p>

<pre><code>var eleID = '';
$('.SlideSelect').each(function(i) {  

    eleID = $(this).attr('id');

    $('#'+eleID).delay(800*i).trigger('click');
});
</code></pre>

<p>However the delay does not work and just loops through.</p>

<p>Does anyone know why?</p>

<pre><code>var eleID = '';
$('.SlideSelect').each(function() {  

    eleID = $(this).attr('id');

    setTimeout(function(){
        $('#'+eleID).trigger('click');
    }, 5000)
});
</code></pre>
