Identify odd even rows in rowcallback
Identify odd even rows in rowcallback
bbrindza
Posts: 316Questions: 73Answers: 1
How would I identify even/odd rows in a rowCallback function?
This question has an accepted answers - jump to answer
Answers
I believe Datatables adds a classnname of
odd
oreven
to the rows. You can check to see if itsodd
oreven
like this:$( row ).hasClass( 'odd' );
.Kevin
Identical replies overlapping with regard to response time! And yes, Datatables adds those classnames as you suspected, Kevin. I tested my example and it works.