Loop through array of DIV ids, and refresh those DIVS every x seconds
<p>Say I have 4 divs:</p>

<pre><code>&lt;div id='blue'&gt;&lt;/div&gt;
&lt;div id='refresh12'&gt;&lt;/div&gt;
&lt;div id='red'&gt;&lt;/div&gt;
&lt;div id='refresh23'&gt;&lt;/div&gt;
</code></pre>

<p>I'm putting every div on my page that begins with 'refresh' into an array like this:</p>

<pre><code>var divs = $('div[id^="refresh"]');
</code></pre>

<p>Now, what I want to do, is refresh the divs in the array every 5 seconds.  I know I need to use SetInterval, but I'm not sure how to start the loop.  Also, the divs aren't pulling content from another page, it's from the same page, just dynamic data that needs to be refresh every 5 seconds.  Any help is appreciated. Thanks.</p>
