我如何在 javascript/asp 中添加两个文本框值并显示在第三个?我的代码在下面
function fill() {
var txt8 = document.getElementById("TextBox8").value;
var txt9 = document.getElementById("TextBox9").value;
document.getElementById("TextBox10").value = txt8 + txt9;
}
TextBox8 和 TextBox9 都有 onchange="fill"
最佳答案
您必须调用函数,onchange="fill()"
注意 ()
关于javascript添加两个文本框值并显示在第三个,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12828522/