I'm looking for a way to apply the CSS class "bestvalue" to our table dynamically (since I don't have access to the HTML) for all rows with a quantity of 300 or more. This would be the last 2 rows in the example below.
<table class="lb-vd-table">
<thead class="lb-vd-table-head">
<tr class="vd-table-head-row">
<th class="lb-vd-table-head-text">QUANTITY</th>
<th class="lb-vd-table-head-text">PRICE</th>
</tr>
</thead>
<tbody class="lb-vd-table-body">
<tr class="lb-vd-table-body-row">
<td class="lb-vd-table-body-text">100</td>
<td class="lb-vd-table-body-text"><span class="money">$4.00</span></td>
</tr>
<tr class="lb-vd-table-body-row">
<td class="lb-vd-table-body-text">200</td>
<td class="lb-vd-table-body-text"><span class="money">$3.00</span></td>
</tr>
<tr class="lb-vd-table-body-row bestvalue">
<td class="lb-vd-table-body-text">300</td>
<td class="lb-vd-table-body-text"><span class="money">$2.00</span></td>
</tr>
<tr class="lb-vd-table-body-row bestvalue">
<td class="lb-vd-table-body-text">400</td>
<td class="lb-vd-table-body-text"><span class="money">$1.00</span></td>
</tr>
</tbody>
</table>
Do you think using JS would be the most effective method for this task?