In a function I have created a variable called id2. This variable will loop through and change to different strings eg. c1 c2 c3.
These strings are the id's of cells in a table.
I want to be able to collect the value in the cell by using the id2 variable in my function. How can this be done?
alert(getElementByID("id2").value) - this will not work.
id2 is a variable not a String : alert(getElementByID(id2).value)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)