View Full Version : table elements

03-22-2005, 10: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.

03-22-2005, 11:09 AM

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.