I have a table, and I need to apply different conditional styles based on a specific attribute value. Here is a snippet of the table that I want to update:
<table table-type= "source">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
</tr>
</table>
The attribute that I need to dynamically change is table-type. When a table type is 'source', for instance, I need its background color to be yellow, and if it is 'target', its background color will be red.