Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

How to compare two cells when using table_cell_highlighting.js

$
0
0
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).

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>