title: Javascript multiply on click
body: <p>I want to have a default value (10 for example) and a button to increase it by the same value on every click.. I can't get script to work</p>
  
  <pre><code>&lt;div id="output"&gt;10&lt;/div&gt;
  &lt;div id="increase"&gt;Increase&lt;/div&gt;
  
  &lt;script&gt;
  $('#increase').click(function() {
  var one = $('#output').val();
  var increase = 10;
  var output = +one + increase;
  
  $('#output').val(output.toFixed(2));
  document.getElementById('output').innerHTML = value;
  });
  &lt;/script&gt;
  </code></pre>
  
  <p><a href="https://jsfiddle.net/t5ud192g/3/" rel="nofollow">https://jsfiddle.net/t5ud192g/3/</a></p>