http://jsfiddle.net/ktdj3u9r/5/
I am uisng Jquery DataTable to display data in a Tabular format .
My requirement is that if the quantity field is greater than 1
Use fnRowCallback for this:
fnRowCallback
"fnRowCallback": function (nRow, aData, iDisplayIndex, iDisplayIndexFull) { if(aData[2] > 100000){ $('td:eq(2)', nRow).addClass("td-green"); } }
This will add the class td-green to any value > 100000
td-green
updated fiddle: https://jsfiddle.net/markps/ktdj3u9r/6/