title: Calculation form, behind the comma
body: <p>This calculation script works almost, but it doesn't do anything with a value with a number behind the comma. Can anyone help me?</p>
  
  <pre><code>var selects = $('select');
  var inputs = $('input');
  selects.change(calculate);
  inputs.keyup(calculate);
  
  function calculate()
  {
      var runningTotal = 0;
      selects.each(function(i)
      {
          var val = parseInt($(this).val());
          var qty = inputs.eq(i).val();
          runningTotal += (val*qty);
      });
  
      $('#grandtotal').val(runningTotal);
  }
  </code></pre>