title: How to make keypress event of asp textbox?
body: <p>Hi all i am writing calculation of varius asp textbox controls. I want my calculation being done with keypress event. Below code i am using but not working</p>
  
  <p>.aspx page</p>
  
  <pre><code>&lt;asp:TextBox ID="txtMaintCost onkeypress="calculateFinanceDetail(); return false;" runat="server"&gt;&lt;/asp:TextBox&gt;
  </code></pre>
  
  <p>.js file</p>
  
  <pre><code>function calculateFinanceDetail() {
              var txtMaintCost = $('input[id$=txtMaintCost]').val();
              var txtInstallCost = $('input[id$=txtInstallCost]').val();
              var txtFreightCost = $('input[id$=txtFreightCost]').val();
  }
  </code></pre>
  
  <p>its not calling javascript function on keypress event...
  If anyone have any idea than please help me in this..</p>