I have a scenario where I am populating a table with random numbers, and I want the background color of each cell to change based on the value of the number in that cell. Since these numbers refresh periodically, I need the colors to update accordingly as well. How can I achieve this functionality? Thank you!
HTML
<table class="table table-bordered">
<tbody>
<tr>
<td>934567812</td>
<td>657843219</td>
<td>124578963</td>
</tr><tr>
<td>987654321</td>
<td>345621789</td>
<td>698754312</td>
</tr><tr>
<td>543216789</td>
<td>215498763</td>
<td>652134897</td>
</tr>
</tbody>
</table>