How to find the element by classname
<p>I am trying to do a loop to check all the elements with a class selector.</p>

<p>I have </p>

<p>html</p>

<pre><code>&lt;div class='label'&gt;aaaa&lt;/div&gt;
&lt;div class='label'&gt;bbbb&lt;/div&gt;
&lt;div class='label'&gt;cccc&lt;/div&gt;
&lt;div class='label'&gt;dddd&lt;/div&gt;

 var pre=$('.label')

    pre.each(function(e){
        console.log(e);
    })
</code></pre>

<p>but it doens't show the element (aaaa,bbbb..etc).</p>

<p>How do I do this? Thanks a lot </p>
