put content of all elements of class into array..why do i get these error messages
<p>I'm trying to load text of all divs that have a particular class into an array, but this</p>

<pre><code>var temp = $('.theClass').text();
    temp = temp.toArray();
    console.log(temp);
</code></pre>

<p>keeps giving me the error</p>

<p><code>Uncaught TypeError: Object  has no method 'toArray'</code></p>

<p>And</p>

<pre><code>var tempArr = [];
var temp = $('.theClass').text();

for (var t in temp){

    tempArr.push(t);
}
console.log(tempArr);
</code></pre>

<p>results in an array filled with many, many objects within objects just filled with integers.
<img src="http://i.stack.imgur.com/oUxEi.png" alt="screenshot of chrome console"></p>

<p>An explanation of how to do this properly can be found <a href="http://stackoverflow.com/a/4948779/1252748">here</a>, but I wonder if someone could provide me with an explanation for why I get these errors. Thanks!</p>
