There's probably a few ways you could go about this. I'd make a set of CSS Classes/Rules to define your colors, then use javascript to assign the class to the table row based on your drop down selection.
Let's say I want the row to become red, when the dropdown choice is set to "Red".
First, write the CSS to define how to display the "RedRow" class:
tr.RedRow {color:#f00;}
tr.RedRow input, tr.RedRow select {color:#f00;}
These two rules just color the standard text, input text, and select text to be red (#f00).
Next add a CSS class to your drop-down in the table. Do this from the advanced tab of the settings page on the forms designer, where you initially set up your table. I'll give mine a class of "ColorSelect"
Finally add some javascript to respond whenever this drop-down content changes, and add the class to the "tr" element for the proper row of the table.
$(document).ready( function() {
$('.ColorSelect select').change( function() {
if ($(this).val() == "Red"){
$(this).closest("tr").addClass("RedRow");
}else{
$(this).closest("tr").removeClass("RedRow");
}
});
});
All this does is check the value of the drop down and either add or remove the "RedRow" class to the parent "tr" element. When the class is added, it will trigger the CSS rules to apply to the row. Otherwise, they'll display with the default colors.