Action indicator during JQuery each() function
<p>How to do simple action indicator during execution of JQuery each(), is this possible?
I have some problems with my JQuery code, i don't understand the behavior of it :/
I am new to JQuery.</p>

<p>js code look like this:</p>

<pre><code>$(function () {
     $('#offer_discount').keyup(function () {

           //here i try to show my hidden div with action indicator
           $('#mask').show();

           $('#search-result').find('tr').each(function (index) {
                // do some calc
           });

           // here i try to hide my div with action indicator
           $('#mask').hide();
     });
});
</code></pre>

<p>it didn't work properly, hidden div shows at the end of calculations. Anybody can help?</p>
