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 the createdCell callback in yor quantity declaration :
...
"columns": [
{ "title": "Name" },
{ "title": "Price" },
{ "title": "Quantity" ,
mRender: function(data, type, row){
var quantity = row[2] ;
return quantity;
},
createdCell: function (td, cellData, rowData, row, col) {
if (cellData>100000) $(td).css('color', 'green');
}
}
]
...
forked fiddle -> http://jsfiddle.net/5fbo72rm/