Hello..please help with my problem since Im new in using
HTML and javascript.
I have this table that has rows and columns.
Hello..please help me with my problem since Im new in using
HTML and javascript.
I have this table that has rows and columns.
When i click the value of the cell, it will return
the values of the cells of the same row.
Example
So if I click cell with xyz value, it should return xyz and xxx values.
Im thinking of using onClick in TD tag then get the values as arguments
for the function.
is this possible?
how can i manipulate the values sent to the function?
HTML and javascript.
I have this table that has rows and columns.
Hello..please help me with my problem since Im new in using
HTML and javascript.
I have this table that has rows and columns.
When i click the value of the cell, it will return
the values of the cells of the same row.
Example
Code:
<TABLE> <TR> <TD>xyz</TD> <TD>xxx</TD> </TR> <TR> <TD>abc</TD> <TD>aaa</TD> </TR> </TABLE>
Im thinking of using onClick in TD tag then get the values as arguments
for the function.
Code:
<TD onClick="GetVal(this);">xyz</TD>
how can i manipulate the values sent to the function?
Comment