How to make table row clickable ?

How to make table row clickable ?

plabon_duttaplabon_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

Answers

  • glendersonglenderson Posts: 231Questions: 11Answers: 29
    Answer ✓

    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/.

This discussion has been closed.