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
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted Mar 5, 2010, 9:41 PM EST
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.