Trying to remove background color on a row set by fnRowCallBack

Trying to remove background color on a row set by fnRowCallBack

gmarshall56gmarshall56 Posts: 15Questions: 6Answers: 0

Hello:

I've been struggling with this for a couple of days now. Please see my code:

http://live.datatables.net/soyikos/16/edit

Per another user's suggestion I set the background color of a row using:
$('td', nRow).css({"background-color": "#36e500" });

....because I needed the entire row highlighted, not just a few of the columns. This works great. The table displays with the appropriate row highlighted in its entirety.

Now when we click on another row, we need the background color of the row that was initially set to be removed. Clearly I'm not understanding the syntax of how to make this happen. Can you please review the "click" event I have code in the example and educate me on how to make this happen?

Thank you for your time.
Gary

This discussion has been closed.