title: How to count up starting at any specified number in javascript?
body: <p>Say I have a number in a div:</p>
  
  <pre><code>&lt;div id="value"&gt;100&lt;/div&gt;
  </code></pre>
  
  <p>And I have this javascript acting on it:</p>
  
  <pre><code>function animateValue(id){
      var obj = document.getElementById(id);
      var current = obj.innerHTML;
      setInterval(function(){
          current++;
      },1000);
  }
  
  animateValue(value);
  </code></pre>
  
  <p>To my understanding, this script translates to:<br /><br />
  &bull; Grab the HTML element called (in this case) "value" and store it in "obj"<br />
  &bull; Take the inner html from obj and store it in "current"<br />
  &bull; Take the "current" variable and increment it every second</p>
  
  <p>It was supposed to take the content of <code>#value</code> and increment it up by one every second, but instead it does nothing. How do I solve this? What have I done wrong? As you can tell, I am not experienced in javascript, so go easy on me.</p>