My site reads a XML file that contains information (values) for a data-table. I use CSS to style the table and everything works fine.
To get a better user-experience
without loop you can do it this way
var val="ff";
$("#grid td:contains('"+val+"')").css('background-color', 'red');