If you're generating a table in plain HTML and want to highlight rows in red when QtyInKg < 10:
<table id="dataTable" border="1">
<thead>
<tr>
<th>Item</th>
<th>QtyInKg</th>
</tr>
</thead>
<tbody>
<tr>
<td>Apples</td>
<td>8</td>
</tr>
<tr>
<td>Oranges</td>
<td>12</td>
</tr>
</tbody>
</table>
<script>
const rows = document.querySelectorAll("#dataTable tbody tr");
rows.forEach(row => {
const qty = parseFloat(row.cells[1].textContent);
if (qty < 10) {
row.style.backgroundColor = "red";
row.style.color = "white";
}
});
</script>
If you're working in Excel:
-
Add the new column QtyInKg.
-
Select the rows or table range.
-
Go to Home → Conditional Formatting → New Rule.
-
Use this formula:
=$B2<10
This link can help https://www.aspsnippets.com/questions/442549/Geometry Dash Lite/Cascading-DropDownList-from-Database-without-using-Entity-Framework-in-ASPNet-MVC/