title: Change input value onclick button - pure javascript or jQuery
body: <p>I have two buttons and if I click on some button I need to change value in input text and change total price (product price * value of button - 2 or 4 Qty).  </p>
  
  <p>I know that it's simple but I'm not good in javascript or jQuery. Answer in jsfiddle would be best.<br>
  My jsfiddle is here <a href="http://jsfiddle.net/J7m7m/1/" rel="noreferrer">http://jsfiddle.net/J7m7m/1/</a></p>
  
  <p>My simple code:</p>
  
  <pre><code>Product price: $500
  &lt;br&gt;
  Total price: $500
  &lt;br&gt;
  &lt;input type="button" onclick="change()" value="2&amp;#x00A;Qty"&gt;
  &lt;input type="button" value="4&amp;#x00A;Qty"&gt;
  &lt;br&gt;
  Total &lt;input type="text" id="count" value="1"&gt;
  </code></pre>