How can I get a class from a jQuery datatable row object?
Use node
with className
:
row.node().className;
It is a really a good question. The ordinary jQuery way, by using row.index()
:
var rowClass = $("#example tbody tr:eq(" + row.index() + ")").attr('class');
Proof of concept -> http://jsfiddle.net/7jy46wz4/