fnDrawCallback, add classes according to values
fnDrawCallback, add classes according to values
andrew1986
Posts: 12Questions: 5Answers: 0
Hi again guys,
I just wonder is possible to add a class to a tr, base on a td value? meaning, if my td is X, add a class to a parent tr...
Any advises?
Thanks in advanced.
I just wonder is possible to add a class to a tr, base on a td value? meaning, if my td is X, add a class to a parent tr...
Any advises?
Thanks in advanced.
This discussion has been closed.
Replies
fnDrawCallback': function(){
$('td.status').each(function(){
if ($(this).text() == "STATUS") {
$(this).parent().addClass("the_class");
}
})
}
Allan