I am using table_cell_highlighting.js and right now I have something like this working:
if (cell.field === 'field_percent') {
if (value > 50) {
$td.addClass('range-cell').addClass('range-severe');
}
}
However, what I *want* to do is this:
if (cell.field === 'field_percent') {
if (value > 'cell_to_compare_with'.value) {
$td.addClass('range-cell').addClass('range-severe');
}
}
where `cell_to_compare_with` is some other cell in the data set (on the same row as the cell I'm looping over right now).
↧