plain javascript - increment number using function like $.animate with comma -


I am developing a game that will bring the sum of addition or subtraction to life.

jquery solution

How can I do this in a side javascript?

I want to avoid using jquery

In this solution, someone Also does not require jQuery

  var = 40000, = 50000; Work increment () {setTimeout (function () (from ++; if (from & lt; = from) {document.getElementById ("test"). InnerHTML =; increment ();}}, 10);} Increment ();  

Please go to jsfiddle


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -