title: Java Script: Adding and Subtracting Variables Continuously Using onclick button
body: <p>I want to continuously add numbers by continuously clicking the button:</p>
  
  <pre><code>function burgersub(){
      if(document.getElementById("burg").value - 1 &lt; 0)
      return;
      else
          document.getElementById("burg").value--;
  }
  function burgeradd(){
      document.getElementById("burg").value++;
  }
  </code></pre>
  
  <p>Now Here is my Html code for button and form:</p>
  
  <pre><code>&lt;p&gt;&lt;button class="btn btn-default" onclick="burgeradd()"&gt;+&lt;/button&gt;&lt;button class="btn btn-default" onclick="burgersub()"&gt;-&lt;/button&gt;&lt;/p&gt;
  &lt;input readonly="yes" type="text" class="form-control" id="burg" placeholder="Amount"&gt;
  </code></pre>