Hi All,
I have a ASP page that is creating a list of tables which have the following naming convention
tblCaseDetails? where the ? is a number
I need to be able to access the data that is stored in the first cell of each table using javascript.
I have the following
alert(document.all.tblCaseDetails0.rows[0].cells[0].innerText);
Which will give me the info in the first cell of the table named "tblCaseDetails0".
How can I change this so that no matter how many tables are created I can always access them from Javascript?
I though of something like
document.all.tblCaseDetails + i +.rows[0].cells[0].innerText;
Where 'i' is the number but this does not work.
This is the last piece of a project that I would love to get away from so all help will be greatly appreciated.
Thanks,
Gavin
I have a ASP page that is creating a list of tables which have the following naming convention
tblCaseDetails? where the ? is a number
I need to be able to access the data that is stored in the first cell of each table using javascript.
I have the following
alert(document.all.tblCaseDetails0.rows[0].cells[0].innerText);
Which will give me the info in the first cell of the table named "tblCaseDetails0".
How can I change this so that no matter how many tables are created I can always access them from Javascript?
I though of something like
document.all.tblCaseDetails + i +.rows[0].cells[0].innerText;
Where 'i' is the number but this does not work.
This is the last piece of a project that I would love to get away from so all help will be greatly appreciated.
Thanks,
Gavin