title: Jquery animated percentage counter
body: <p>In my vote system I want to show a vote percentage. This percentage is given and calculated in the ajax request (success response). I would like to create something like a live counter up and backwards (if the vote percentage is more or less).</p>
  
  <p>let's say, the vote is now 40 and the success response gives 50 back, I want to show the counter is counting from 40 till 50 (animated).</p>
  
  <p>I tried this by:</p>
  
  <pre><code>&lt;b class="countPercentage"&gt;40%&lt;/b&gt;
  
  $('.countPercentage').animated().text(data.percentage);
  </code></pre>
  
  <p>But no success, it changes only the value from 40 to 50.</p>
  
  <p>Thanks in advance! 
  Nick</p>