Tablesorter, Color rows depending on an specific value

Posted by vikitor on Stack Overflow See other posts from Stack Overflow or by vikitor
Published on 2010-04-06T09:29:10Z Indexed on 2010/04/06 9:33 UTC
Read the original article Hit count: 451

Hi all, I've been looking around for a solution to this thing but I haven't found anything similar to what I'm looking for. The thing is that I've got a table filled with data from a database, and what I want is to change the background colour of an specific row depending on a value of the class I'm loading in each row. The thing is that I have to display some data but as the fields to be displayed are quite a lot, I don't have more space to show an status field, so I would like to show the row in red if the status is inactive, and the rest of the rows in the normal color of the blue stylesheet. Is there a way to do that through tablesorter? I'm opened to suggestions, as I'm not sure how to do it.

Thank you all in advance, Victor

© Stack Overflow or respective owner

Related posts about tablesorter

Related posts about jquery-plugins