title: Get Value from another div, subtract, and populate another div with jQuery
body: <p>I'm trying to get the value of one specific div class, subtract that by 500 and then populate the result into another div.</p>
  
  <p>I'm not quite sure what process I would need in order to populate the result of the subtraction into the other div.</p>
  
  <p>Something like this:</p>
  
  <pre><code>&lt;div class="main-value"&gt;5000&lt;/div&gt;
  &lt;!-- main-value - 500--&gt;
  &lt;div class="new-value"&gt;&lt;/div&gt;
  
  //Script
  var main  = $(".main-value");
  main.html(parseInt(main.html()) - 500 ).appendTo($(".new-value"));
  </code></pre>
  
  <p>So far, the subtraction work, but I can't get it to append the updated value to the empty div and keep the original one intact.</p>