...

View Full Version : table elements



lara123
03-22-2005, 09:59 AM
I have a form named form1, inside which i have a table named table1, and that table1 has a column of text fields named result1, result2 etc.
How do i access the value of those fields,
i try doing this:

document.form1.table1.result1.value and it doesn not work
I also tried document.form1.getElementById('table1').result1.value and there too something is wrong.

Could someone point out where I am going wrong.
Thanks

glenngv
03-22-2005, 10:09 AM
document.form1.result1.value

You may also use the bracket notation instead of dot notation. See my sig for more info.

It doesn't matter if the fields are inside a table or not. Table is not part of the form control reference hierarchy.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum