Using CSS IDs or Classes for each row

Using CSS IDs or Classes for each row

chosen1chosen1 Posts: 1Questions: 0Answers: 0
edited July 2013 in General
I need to be able to target specific rows using CSS (not columns), is there a way to make DataTables add HTML IDs or Classes for each row of the table?

Thanks.

Replies

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Yes, use `DT_RowId` to add IDs and `DT_RowClass` to add class names in the data source for the table. Editor uses this approach for IDs: http://editor.datatables.net/release/DataTables/extras/Editor/examples/index.html

    Allan
This discussion has been closed.