hi,,i have one table as given above,,,,there are textboxes in each field,,i want to perform calculation between all textboxes with the use of javascript,,how can i do that?plz provide me code..thank you
calculation between multiple textbox
hi,,i have one table as given above,,,,there are textboxes in each field,,i want to perform calculation between all textboxes with the use of javascript,,how can i do that?plz provide me code..thank you
Amit ChoudharyPosted Mar 6, 2010, 2:41 AM
see below code:
function sumAll()
{
var val1=0;
var val2=0;
val1=int.parse(document.getElementById('TextBox1').value);
val2=int.parse(document.getElementById('TextBox2').value);
document.getElementById('TextBox3').value=(val1+val2).toString()
}
Please mark the answer if it helps you.