jQuery addClass example
Change class name on click in jQuery
by InferOn
HTML
<table id="my_table">
<thead>
<tr style="text-align: right;">
<th></th>
<th>Vibration 1</th>
<th>Vibration 2</th>
</tr>
</thead>
<tbody>
<tr>
<th>2018-05-14</th>
<td>0.02</td>
<td>0.09</td>
<td>0.11</td>
<td class="red">13.26</td>
<td>1.72</td>
<td class="red">14.98</td>
</tr>
<tr>
<th>2018-05-15</th>
<td>0.02</td>
<td>0.05</td>
<td>0.07</td>
<td class="red">13.27</td>
<td>1.54</td>
<td class="red">14.82</td>
</tr>
</tbody>
</table>