title: in jQuery, how to get the quantity of an element based on id?
body: <p>I have a bunch of elements with <code>&lt;div id='id1'&gt;&lt;/div&gt;</code> and would like to return the quantity/count of them.</p>
  
  <p>I am using the following code, but it always returns the value of 1:</p>
  
  <pre><code>alert( $('#id1').size() );
  </code></pre>
  
  <p>What am I doing wrong?</p>