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