Сначала нужно добавить в каждую строку статус:
<tr class=\"Executed\">"; echo "
<tr class=\"Hold\">"; echo "
С помощью JS вы можете добавить к родителю <table>
выбранный статус:
$('select#lotstatus').on('change', function() {
$('table').attr('status', $(this).val());
});
Затем в вашем CSS нужно установить цвет, который вы хотите для каждого статуса:
table[status="Executed"] tr.Executed .statuscolor { color: red; }
table[status="Hold"] tr.Hold .statuscolor { color: green; }
table[status="Closed"] tr.Closed .statuscolor { color: yellow; }
Возможно, вам нужно добавить «id» в таблицу, чтобы избежать помех другим таблицам.