title: Trying to use Jquery/javascript to calculate form fields
body: <p>Im having a terrible time trying to calculate the value of two form fields.  I'm constantly getting "NAN" which would indicate non-numeric input, this is despite the fact that the form fields are only populated with numbers.</p>
  
  <p>In response I tried to use ParseInt to get a numeric value.  This also fails to yield a successful result.</p>
  
  <p>This is what I have so far.  Any help is appreciated.</p>
  
  <pre><code>$('#value-calc input').change(function () {
  
      var valueINT = parseInt($('#value'),10);
      var quantINT = parseInt($('#quantity'), 10);
      var math = ((valueINT/quantINT)*1000);
  
      $('#cpm').val(math);
  });
  </code></pre>
  
  <p><a href="http://jsfiddle.net/greyoxide/YRWAA/1/" rel="nofollow">http://jsfiddle.net/greyoxide/YRWAA/1/</a></p>