change row color when clicked?
change row color when clicked?
veloopity
Posts: 87Questions: 36Answers: 2
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