highlight low date
highlight low date
![infotba](https://secure.gravatar.com/avatar/c67bcc3120c1c5438eecacadf7e95896/?default=https%3A%2F%2Fvanillicon.com%2Fc67bcc3120c1c5438eecacadf7e95896_200.png&rating=g&size=120)
external json file is like..
{
"data": [
{
"planned_date":"11/10/2017",
"actual_date":"07/03/2018"
},
....
]
}
.....
code is :
{
"targets": [2],
"createdCell": function (td, cellData, rowData, row, col) {
if ( cellData > data.planned_date ) {$(td).addClass('highlight')}
}
},
does not run. But
...
{
"targets": [12],
"createdCell": function (td, cellData, rowData, row, col) {
if ( cellData > "11/10/2017") {$(td).addClass('highlight')}
}
},
runs
Please help me. Thanks
Answers
Looks like a duplicate post of this thread:
https://datatables.net/forums/discussion/49292/highlight-low-date#latest
Kevin