title: JQuery: Change value when value of other input field is changed
body: <p>I want to change the value of an input field whenever the value of another one is changed.</p>
  
  <p>I've tried for a while and I can't seem to get it to work</p>
  
  <pre><code>&lt;input class="span4 input-big" id="dare_price" name="price" size="30" type="text" onChange="updatePrice()" /&gt;
  &lt;input class="span4 input-big" id="total_price_amount" readonly="readonly" value=""/&gt;​
  
  
  function updatePrice() {
      var price = $("#dare_price").val();
      var total = (price + 1) * 1.05;
      $("$total_price_amount").val(total);
  }​
  </code></pre>
  
  <p><a href="http://jsfiddle.net/QWSQp/57/" rel="noreferrer">Here's the fiddle.</a></p>