Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to increment variable value in javascript

    var a = 1;
      function increase(){
            var textBox = document.getElementById("text");
            textBox.value = a;
            a++;
      }    
 
PREVIOUS NEXT
Tagged: #increment #variable #javascript
ADD COMMENT
Topic
Name
4+7 =