Identify odd even rows in rowcallback
Identify odd even rows in rowcallback
bbrindza
Posts: 329Questions: 78Answers: 1
How would I identify even/odd rows in a rowCallback function?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
I believe Datatables adds a classnname of
oddorevento the rows. You can check to see if itsoddorevenlike 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.