Hello,
I have a table with an add-row setup. The table has several columns but I only need to calculate COLUMN FOUR. The results go to a textbox via a button. My code is.....
.....
.....
.....But when I click pbTest, the result in tbTotal is, with the brackets.....
[object]
.....What am I doing wrong?
I have a table with an add-row setup. The table has several columns but I only need to calculate COLUMN FOUR. The results go to a textbox via a button. My code is.....
Code:
function sumup() { document.getElementById("Table1") column = document.getElementsByTagName("colFour"); document.myForm.tbTotal.value = column; }
Code:
<TABLE NAME="Table1" id="Table1"> <COL WIDTH=10*> <COL WIDTH=139*> <COL WIDTH=27*> <COL WIDTH=29*> <COL WIDTH=27* NAME="colFour" id="colFour"> <COL WIDTH=10*>
Code:
<INPUT TYPE=TEXT NAME="tbTotal"> <INPUT TYPE=BUTTON NAME="pbTest" VALUE="TEST" onclick="sumup();"./>
[object]
.....What am I doing wrong?
Comment