文本框计算
有一系列的INPUT文本框,
name=txtFirst1(txtFirst2,txtFirst3,……)
name=txtSecond1(txtFirst2,txtFirst3,……)
name=txtThird1(txtThird2,txtThird3,……)
是否可以用ducument.all["text"+i].value来使用里面的值来进行计算呢?
如
function cal()
{
total = ducument.all["txtFirst"+i].value + ducument.all["txtSecond"+i].value;
ducument.all["txtThird"+i].value = total;
}
或者有其它的方法,请大家多多指教。