title: Live count - jQuery and .length
body: <p>I have shopping cart who comes in lightbox, but on this button to call shop cart i have number of added products, I count my div elements (added products) with: <em>.length</em>, and that is ok. but how can i count this elements live, if i click on "add to cart" then should automaticly number of products increase.</p>
  
  <p>At the moment my code look like following </p>
  
  <pre><code>var elementsInCart =  $('div.cartelements div.cartproducts');
  
  $('#call_cart_button_number').html(elementsInCart);
  </code></pre>
  
  <p>I see always true number of products if i refresh page. I have tried to solve this with click, but that's not true.</p>
  
  <p>I have found some other examples, but there is always something others. <a href="https://stackoverflow.com/questions/2540277/jquery-counter-to-count-up-to-a-target-number">jQuery counter to count up to a target number</a></p>