Style both rows in thead
Style both rows in thead
Hi!
I have one problem with datatables:
When I use individual filtering on columns, I made second with like these:
[code]
id
title
[/code]
but, when I change sorting, in first row, second row won't change style.
How to make second one changing a style on sorting action?
Thanks for help.
I have one problem with datatables:
When I use individual filtering on columns, I made second with like these:
[code]
id
title
[/code]
but, when I change sorting, in first row, second row won't change style.
How to make second one changing a style on sorting action?
Thanks for help.
This discussion has been closed.
Replies
Allan
I'm using bSortCellsTop, and it work perfectly, with one 'but'. When my top row is sorting one, i want to make second row of thead darker, like first one. But it won't work. Second row of thead don't get any class or style, it remains the same like before sorting.
Is there any possibility or simple hack, to make second row darker like the first one?
Allan
[code]fnDrawCallback: function () {
var thlisth=$(this).find('thead >tr:first-child >th');
var thlistf=$(this).find('thead >tr:last-child >th');
for(i=0;i