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.....
Expand|Select|Wrap|Line Numbers
- function sumup() {
- document.getElementById("Table1")
- column = document.getElementsByTagName("colFour");
- document.myForm.tbTotal.value = column;
- }
Expand|Select|Wrap|Line Numbers
- <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*>
Expand|Select|Wrap|Line Numbers
- <INPUT TYPE=TEXT NAME="tbTotal">
- <INPUT TYPE=BUTTON NAME="pbTest" VALUE="TEST" onclick="sumup();"./>
[object]
.....What am I doing wrong?