function browseConditionalFormatting() {
$('[data-nu-column="1"]').each(function (index) {
var v = $(this).html();
var color = String(v) == "TOPLAM" ? 'yellow' : '';
$(this).css("background-color", color);
});
}
This code working for 1 column, but i want change to color data-nu-column="2 and data-nu-column="1" together. But conditinal if must look only data-nu-column="1" How to make?
function browseConditionalFormatting() {
$('[data-nu-column="1"]').each(function (index) {
let v = $(this).html();
let color = String(v) == "TOPLAM" ? 'yellow' : '';
let bg = {"background-color": color};
$(this).css(bg).next().css(bg);
});
}
function browseConditionalFormatting() {
$('[data-nu-column="1"]').each(function (index) {
let v = $(this).html();
let color = String(v) == "TOPLAM" ? 'yellow' : '';
let bg = {"background-color": color};
$(this).css(bg).next().css(bg);
});
}
Do column 1 + 2 contain numeric values?
If the value in column 1 is smaller than the one in column 2, column 1 (or 2?) should be red?
Or is the logic different?