title: jPaginate obtains incorrect child count
body: <p>In the jQuery plugin, jPaginate, the number of child objects is always returning the value of 1 determined by this code (lines 45-48 in jPaginate.js):</p>
  
  <pre><code>//getting the amount of elements inside parent element
  var number_of_items = obj.children().size();
  //calculate the number of pages we are going to have
  var number_of_pages = Math.ceil(number_of_items/show_per_page);
  </code></pre>
  
  <p>I call the script in the header in the document.ready function:</p>
  
  <pre><code>$("#content").jPaginate({
  items: 4,
  pagination_class: "pagination",
  minimize: true                    
  });
  </code></pre>
  
  <p>and I wrapped a div with id="content" around the table rows I want paginated like this:</p>
  
  <pre><code>    &lt;div id="content"&gt;
          &lt;table class="stripeMe center box-shadow-inner"&gt;
              &lt;?php foreach ($invoices as $invoice) { ?&gt;
                  &lt;tr&gt;
                      &lt;td&gt;
                          &lt;a href='&lt;?php echo $_SERVER['PHP_SELF']; ?&gt;/retrieve?class=InvoiceLineItems&amp;amp;id=&lt;?php echo $invoice['invoice_id']; ?&gt;'&gt;&lt;?php echo $invoice['invoice_number']; ?&gt;&lt;/a&gt;&amp;nbsp;&lt;?php echo $invoice['customer_name'] ?&gt;&amp;nbsp;&lt;?php echo $invoice['invoice_date'] ?&gt; 
                      &lt;/td&gt;
                  &lt;/tr&gt;   
              &lt;?php } ?&gt;    
          &lt;/table&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>What I get is one long page of records, with the pagination selector set to 'previous' 1 'next'. I tripled check, removed &amp; replaced, and debugged the code as best I could. I still cannot determine why <code>number_of_items</code> gets set to 1.</p>
  
  <p>Any help is appreciated.
  Thanks.</p>