Conditional background color of rows

Hi,

I am using dataTables to render my content onto a view. I need to change the background color of a row depending upon ratio of values of two columns. How shall I proceed. I went through following page on dataTables website but it didn’t work for me.

http://www.datatables.net/examples/advanced_init/row_callback.html

Regards, Sumit

Hi,

I am using dataTables to render my content onto a view. I need to change the background color of a row depending upon ratio of values of two columns. How shall I proceed. I went through following page on dataTables website but it didn't work for me.

   DataTables example - Row created callback

I haven't used datatables before but I personally think that this question is not in any way related to rails. So you'd get better answers there. But if someone has already used it and is willing to answer, then lucky you.

Ok. Thanks anyways.