How to add class to a collection of elements sequentially?
<p>Im trying to add a class to a each element in a collection. I want add a classs to the elemnt then wait a sec or two then add the class to the next one in the collection. </p>

<p>But when I use this code it just adds the class to each one at once. </p>

<pre><code>for (var i = 0; i &lt; article.length; i++) {
    setTimeout(function () {
        $(article[i]).addClass('something';
        }, 10000);
    }
</code></pre>
