loop in javascript
<pre><code>function DC() {
    var elements = $(".panel");
    elements.first().fadeOut(1000, function() {
        $(this).insertAfter(elements.last());
        $(this).fadeIn(1000);
    });
}

$(document).ready(function() {
    var i =0;
    for (var i=0; i &lt; 10; i++) {
        DC();
    };
});
</code></pre>

<p>I want <code>DC()</code> to loop 10 times, but it only looped once.</p>

<p>What did I do wrong?</p>
