71
rated 0 times
[
75]
[
4]
/ answers: 1 / hits: 57389
/ 12 Years ago, thu, august 23, 2012, 12:00:00
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
.aspx page
<asp:TextBox ID=txtMaintCost onkeypress=calculateFinanceDetail(); return false; runat=server></asp:TextBox>
.js file
function calculateFinanceDetail() {
var txtMaintCost = $('input[id$=txtMaintCost]').val();
var txtInstallCost = $('input[id$=txtInstallCost]').val();
var txtFreightCost = $('input[id$=txtFreightCost]').val();
}
its not calling javascript function on keypress event...
If anyone have any idea than please help me in this..
More From » jquery