title: Get count of current div using jquery
body: <p>I used the jquery to get count is </p>
  
  <pre><code>var currentPosition = 0;
  var slides = $(".slideritem");
  var numberOfSlides = slides.length;
  
  manageControls(currentPosition);
  function manageControls(position){
  var count = document.getElementById("count");
  count.innerHTML =(position + 1) + "/" + numberOfSlides;
    }
  </code></pre>
  
  <p>Here is my <a href="http://jsfiddle.net/sureshmonster/ZUZXg/2/" rel="nofollow">JSFiddle</a>. It shows the count but it doesn't update when i go to next div. Any solution ?</p>