title: Creating Javascript array of DIV's with specific ID tag
body: <p>Having trouble getting the id of divs on my page that begin with "refresh".</p>
  
  <p>Example: I have 3 divs on my page.</p>
  
  <pre><code>&lt;div id='refresh5'&gt;&lt;/div&gt;
  &lt;div id='refresh12'&gt;&lt;/div&gt;
  &lt;div id='red'&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I'm trying to create a array using javascript of the divs that begin with "refresh", tried using the following:</p>
  
  <pre><code>var arr = $('div[id^="refresh"]');
  alert(arr);
  </code></pre>
  
  <p>But the alert only shows me [object Object], instead of the div id's ????</p>
  
  <p>Any help is appreciated.</p>