how to put setTimeout after 10 iterarions?
<p>i have a each loop like below  </p>

<pre><code>$('#goldBarList tr:not(:eq(0))').filter(':has(:checkbox:checked)').each(function() {  
    $(this).remove();  
});
</code></pre>

<p>as i have 4000 rows and each row has a checkbox. I need to remove those rows having their checkbox checked.<br>
However, the browser is giving stop running this script error?<br>
because this loop is taking more time to finish.<br>
so i just want to use <code>setTimeout</code> after 10 iterations and continue the loop after 0.5sec..<br>
means i want the loop to sleep for 1/2sec after every 10 iterartions..
please give me some code reference...</p>

<p>Thanks...</p>
