how can i check how many '.classname' items are?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5706106/count-elements-with-jquery">Count elements with jQuery</a>  </p>
</blockquote>



<p>hi there,</p>

<p>i was considering, using jquery,</p>

<pre><code>var n = 0;
$('.className').each(function(){
     n = n+1;
});
</code></pre>

<p>Any better solution in mind?</p>

<p>thanks!</p>
