Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: table elements
03-22-2005, 09:59 AM #1
- Join Date
- Mar 2005
- Thanked 0 Times in 0 Posts
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, 10:09 AM #2
- Join Date
- Jun 2002
- Thanked 251 Times in 247 Posts
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.
Tower of Hanoi Android app (Ad-FREE!)
Tower of Hanoi Android app (FREE!)
Tower of Hanoi Leaderboard
Samegame Facebook App
Samegame Facebook App Leaderboard
vBulletin 5 Floating Bar Mod
vBulletin 5 Photo Slideshow Mod
vBulletin 5 Quote Selected Text Mod
vBulletin 5 Profile Preview Tooltip Mod