Highlight differences in row cells

jh

Member
Hi

Is it possible to highlight differences in values of row elements ?

eg row 1 - red, green, blue
row 2 - red, blue, blue

so highlight 'blue' in row 2 as it has changed from row 1.

Thank you for any help.
 
Google "javascript compare table rows" or "... cells" or similar. If you don't find the perfect solution, at least you'll get tons of hints to piece the code together for your specific case.
 
Hi

Thank you for pointing me to the right places, looks like Ive got some good sources to look at now.

On a general note about the custom jscript file for fabrik I seem to be having a bit of trouble with general use. I have got it working for a details view (a script to hide empty dbjoin elements) so I think I have the general concept right. However I can not get any other codes to work even just small test codes. I have tried looking at codes from W3schools etc and tried a basic code like:

function myFunction() {
var element = document.getElementById("factory_table___factory_name");
element.classList.add("mystyle");
}

Just to test but nothing is happening. Should I be using a different code somehow? Please excuse my novice level of knowledge, I am very much still learning so thank you for any help.

Kind Regards
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top