change row color when clicked?
change row color when clicked?

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
This discussion has been closed.
Answers
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