title: Javascript, Update variable on input change
body: <p>I'm not very experienced with JavaScript (This is my first real thing I've made with it), so my syntax is probably horrendous. I'm trying to get 5 variables to update whenever the input box is changed, however for some reason, they just won't update! I've Googled for solutions but nothing seems to work</p>
  
  <pre><code>document.getElementById("name").addEventListener("keyup", updateName);
  document.getElementById("id").addEventListener("keyup", updateID);
  document.getElementById("quantity").addEventListener("keyup", updateNumber);
  document.getElementById("buybase").addEventListener("keyup", updateBuy);
  document.getElementById("sellbase").addEventListener("keyup", updateSell);
  </code></pre>
  
  <p>Here's a JSFiddle
  <a href="http://jsfiddle.net/q1w6v12u/" rel="nofollow">http://jsfiddle.net/q1w6v12u/</a></p>
  
  <p>Here's the live site
  <a href="http://ts-mc.net/pricing/chest.html" rel="nofollow">http://ts-mc.net/pricing/chest.html</a></p>