In jQuery, what's the difference between text() and innerHTML?
<p>I have div elements and hold text/string inside them, then I try to iterate them, and text() doesn't work, but innerHTML work just fine.</p>

<pre><code>var arr = $('div.elm');
$.each(arr, function(i,j){
    alert(j.text()); // it's not working

    console.log(j.text()); // nothing's in log

    alert(j.innerHTML); // works fine!
});
</code></pre>
