Apply style to td's

Apply style to td's

sckeelssckeels Posts: 3Questions: 0Answers: 0
edited August 2011 in General
Hello,

I am using the following to remove a style (highlight) on a previous row when clicking on a new row. The problem I am running into is that the borders are removed on the td when I remove the highlight from the TR. My question is, how do I add a style to the TD? Thank you.
[code]
$("#_Brands tbody").click(function (event) {
$(oTable.fnSettings().aoData).each(function () {
$(this.nTr).removeClass('hilite');
});

$(event.target.parentNode).addClass('hilite');
});
[/code]

Regards, Steven
This discussion has been closed.