Jerome
04-03-2003, 03:29 PM
Hi,
Difficult to explane, but i'll give it a try:
I have a table with one or more rows and 2 columms, one row looks like this:
<tr id="row-number" onClick=""><td id="a-columm+row-number">some data</td><td id="b-columm+row-number">data used for the onClick event</td></tr>
Every row has an id which is the row-number
Every cell has an id which is columm a or b + row-number
This works fine!
My question is:
The onClick event in the - tr - needs to have the data from columm - b - from the same row.
F.e.
<tr id="4" onClick="alert('DATA FROM CELL B4: JEROME')"><td id="A4">some data</td><td id="B4">JEROME</td></tr>
Unfortunately, the easiest way, implement the onClick event in the - td tag - from columm - b - is not possible.
Another idea, to write the data from columm - b - directly in the onClick event when building the table is also no option.
Feels like i'am running out of idea's today....
Thanks for Your effort,
Jerome
Difficult to explane, but i'll give it a try:
I have a table with one or more rows and 2 columms, one row looks like this:
<tr id="row-number" onClick=""><td id="a-columm+row-number">some data</td><td id="b-columm+row-number">data used for the onClick event</td></tr>
Every row has an id which is the row-number
Every cell has an id which is columm a or b + row-number
This works fine!
My question is:
The onClick event in the - tr - needs to have the data from columm - b - from the same row.
F.e.
<tr id="4" onClick="alert('DATA FROM CELL B4: JEROME')"><td id="A4">some data</td><td id="B4">JEROME</td></tr>
Unfortunately, the easiest way, implement the onClick event in the - td tag - from columm - b - is not possible.
Another idea, to write the data from columm - b - directly in the onClick event when building the table is also no option.
Feels like i'am running out of idea's today....
Thanks for Your effort,
Jerome