Cell Data and Index on Row Click
Cell Data and Index on Row Click
polariman
Posts: 6Questions: 2Answers: 0
Assuming I have a table with 5 columns, how can I get the column index as well as the data in cell 5 when a row is clicked. In essence, how do I access the information in the row data object?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
This is how you'd get the row object when a row or cell is clicked. You can use the tr on click if you don't care about the cell they clicked in the row. If you also need to know that then you could use the second example, td on click.