change row color when clicked?

change row color when clicked?

veloopityveloopity Posts: 87Questions: 36Answers: 2
edited December 2015 in DataTables 1.10

Which class do I have to modify to change the color of a table row when I click on it? I thought for very wide tables it would be good to give the chosen row a different color when scrolling it left-right

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,695Questions: 1Answers: 10,500 Site admin
    Answer ✓

    I'd suggest just using $().addClass() with a click event listener in jQuery. I don't think you need to use any DataTables API methods for this at all.

    Allan

This discussion has been closed.