title: Input not updated accordingly when element values are changed
body: <p>I have created a form where the user will be charged an additional fee of $5if one of the following option is true :</p>
  
  <p>Inscription field is not empty | contains text</p>
  
  <p>OR</p>
  
  <p>radio button 'Decoration petites fleurs souhaitee'</p>
  
  <p>OR</p>
  
  <p>radio button 'Decoration chocolat et fruits souhaitee'</p>
  
  <p>As you can see in the following video my script is reacting strangely and is not consequently applying the additional fee to the total price :</p>
  
  <p><a href="https://www.screencast.com/t/VhmfsccU" rel="nofollow noreferrer">click here</a></p>
  
  <p>Prix (Price) + Supplement (additional fee or surcharge) = Total (Total price)</p>
  
  <p>I can't figure out why. Would need your expertise here. Thanks in advance.</p>
  
  <p>Here is a link to the form code :</p>
  
  <p><a href="https://www.dropbox.com/s/3duf4oe2qerr1rt/FORMCODE.txt?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/3duf4oe2qerr1rt/FORMCODE.txt?dl=0</a></p>
  
  <p>Here is my script (js file) :</p>
  
  <pre><code>$(window).bind('change', function() {
  
      /* Inscription */
      var textmessage = $('#desserttextmessage').val();
      /* Prix */
      var productprice = parseFloat($('#productprice').val());
      /* Supplément */
      var surcharge = 5.00;
      var nosurcharge = 0.00;
      var totalsurcharge = parseFloat(surcharge);
      var productaddfee = parseFloat($('#productaddfee').val());
      var total = parseFloat(productprice).toFixed(2);
      var totalfee = parseFloat(productprice + productaddfee).toFixed(2);
      /* Decoration */
      var valuedecorflower = $('input[name=dessertdecorflowerID]:checked').val();
      var valuedecorchocolate = $('input[name=dessertdecorchocolateID]:checked').val();
  
          if (textmessage != '' || valuedecorchocolate == 'Décoration chocolat et fruits souhaitée' || valuedecorflower == 'Décoration petites fleurs souhaitée') {
  
              $('#productaddfee').val(parseFloat(totalsurcharge).toFixed(2));
              $('#total').val(parseFloat(totalfee).toFixed(2));
  
          } else if (textmessage == '' &amp;&amp; valuedecorchocolate == 'Pas de décoration chocolat et fruits' &amp;&amp; valuedecorflower == 'Pas de décoration petites fleurs') {
  
              $('#productaddfee').val(parseFloat(nosurcharge).toFixed(2));
              $('#total').val(parseFloat(total).toFixed(2));
  
          }
  
  })
  </code></pre>