title: How to increment number using animate with comma using jQuery?
body: <p>I'm trying to increment a number inside an element on page. But I need the number to include a comma for the thousandth place value. (e.g. 45,000 not 45000)</p>
  
  <pre><code>&lt;script&gt;
  // Animate the element's value from x to y:
    $({someValue: 40000}).animate({someValue: 45000}, {
        duration: 3000,
        easing:'swing', // can be anything
        step: function() { // called on every step
            // Update the element's text with rounded-up value:
            $('#el').text(Math.round(this.someValue));
        }
    });
  &lt;/script&gt;
  &lt;div id="el"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How can I increment a number using animate with comma?</p>