How can I call a function every 3 seconds for 15 seconds?
<p>How do I call a jQuery function every 3 seconds?</p>

<pre><code>$(document).ready(function ()
{
    //do stuff...

    $('post').each(function()
    {
        //do stuff...
    })

    //do stuff...
})
</code></pre>

<p>I'm trying to run that code for a period of 15 seconds.</p>
