title: Calculate total based on Key Press Jquery
body: <p>I have 3 textbox</p>
  
  <p>Quantity
  Rate
  Total</p>
  
  <p>I want a key press event that when i type any amount in Rate then the total should be calculated.I have a option of text change Event but that is fired when i leave the textbox. I want to have Key press event of textbox. I have following code.</p>
  
  <pre><code>$('#&lt;%=txtRate.ClientID %&gt;').keypress(function (event) {
  
              alert($('#&lt;%=txtRate.ClientID %&gt;').val());
  
   });
  </code></pre>
  
  <p>Problem i am facing is when i get the alert it does not show me the current pressed value.
  means if i have value in textbox 1 and if i press 2 then it will just alert me 1 as the event fires when i click. so the present value is not recorded.</p>