When values are entered into 2 TextBox's(textbox1 & textbox2) they are multiplied with one another and the answer is displayd in a Label(label1), I need to add all the labels and display it in another label, this has to be don without buttons.
When the TextBox's change this function is called.
function Calculate(textbox1, textbox2, label1)
{
var txt1 = 0;
var txt2 = 0;
txt1 = document.getElementById(textbox1).value;
if (txt1 == "")
txt1 = 0;
txt2 = document.getElementById(textbox2).value;
if (txt2 == "")
txt2 = 0;
var cost = txt1 * txt2;
document.getElementById(label1).innerHTML = cost;
}