Creating a loop that fades out each article in succession. jQuery
<p>So the idea is to fade each image out from the bottom.. obviously it's going to have to backwardly traverse the array. However, i can't seem to figure it out at the moment. The idea is that it would pause after running the fadeOut() function, I thought set time out would work, but firebug gives me this error:
useless setTimeout call (missing quotes around argument?)</p>

<p>Line 262.
I even went as far as to not use a $.each loop and use a for (i=0 loop</p>

<pre><code>&lt;script type="text/javascript"&gt;
    //Bottom Nav functions
    $(document).ready(function(){

        $('#bottomNav a:eq(0)').click(function(){

        var arti = $('#aHolder article');
        var amt = arti.length;
        var i = 0;

            for (i=0;i&lt;amt;i++){

            $('#aHolder article:eq('+i+')').fadeOut();
            setTimeout(300);

            }


        });

    });


&lt;/script&gt;
</code></pre>
