I am using jQuery datatables.I have the data like as follows
Column1 Column2 Column3
-----------------------
AAA BBB CCC
AAA GGG YYY
BBB ooo LLL
Now in column1 for first 2 rows i have same value AAA
.I want to apply some color to those
rows.And then another color for third row.Like this i have 30 records.Is it possible to do this.If possible how i can do this.I am using jQuery data tables.Thanks in advance..
API has recently changed, you should now use aData['Column1'] instead of aData[0]
createdRow functionality was added in v 1.10
https://datatables.net/reference/option/createdRow
Example:
Use the fnRowCallback (or newer rowCallback) to achieve this
Demo: Fiddle