How to make table row clickable ?
How to make table row clickable ?
plabon_dutta
Posts: 6Questions: 3Answers: 0
Hey there, I'm working on a history development of a particular user and I want it to be done with dataTables. However, I cannot find the way with which I can make my row or a particular cell clickable. I need to open separate links with the separate clicks for particular row. Any help would be appreciated. Thanks in advance !!!
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
The best way I've found is to bind the .on("click") of the table to the table body. Then, perform a "hasClass" to determine which element or cell within the table was clicked and act upon that object being clicked.
Here's an example, https://jsfiddle.net/glenderson/es5ax633/1/.