title: simple calculation of integer and decimal number in jquery
body: <p>Trying to multiply 2 values. Quantity is integer and credit price is decimal number. When I run this code nothing happens. </p>
  
  <p>Does anyone know what is the issue? </p>
  
  <p>Thank you.  </p>
  
  <pre><code> $(function(){ // bind the recalc function to the quantity fields
  
      $("#oneCreditSum").after('&lt;label&gt;&lt;/label&gt;Total: Aud &lt;span id=\"total\"&gt;&lt;/span&gt;&lt;br&gt;&lt;br&gt;');
  
      $("#quantity").bind('keyup', recalc);
  
      function recalc(){
          var quantity = $('#quantity').val();
          var creditPrice = $('#creditPrice').val();
          var total = quantity * creditPrice;
          $("#total").text(total);
      }});
  </code></pre>