I have a case something like this:

How can I do when choose example A = 3 and B = 5, will update 8 in column C automatically, and so on for different column and rows ?
The help will be very appreciated. Thank you in advanced !
Try this:
Call the select boxes like "a1", "a2", "b1", "b2"
Call the cells in C like "c1", "c2"
Make the onchange event of the select boxes be like this:
function update() {
var id = this.id.substring(1);
var value1 = parseInt(document.getElementById("a" + id).value);
var value2 = parseInt(document.getElementById("b" + id).value);
document.getElementById("c" + id).innerHTML = value1 + value2;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With