How do I highlight the sorted column like the "order-column" class with Bootstrap 3?
How do I highlight the sorted column like the "order-column" class with Bootstrap 3?
![heartmo](https://secure.gravatar.com/avatar/9d10e9ea0d18314ae46d9884c09882ec/?default=https%3A%2F%2Fvanillicon.com%2F9d10e9ea0d18314ae46d9884c09882ec_200.png&rating=g&size=120)
I tried adding the "order-column" class to my table but it doesn't do anything.
This discussion has been closed.
Answers
One way I've got it working is to manually add the CSS for order-columns but I'm not sure if this is how it it's intended to be done.
relevant css
table.dataTable.order-column tbody tr > .sorting_1,
table.dataTable.order-column tbody tr > .sorting_2,
table.dataTable.order-column tbody tr > .sorting_3 {
background-color: #f9f9f9;
}