<tr class="acti">//class
<script type="text/javascript">
var status = $(this).parent().parent().children(".activity-status").attr("data-value");//Modifying colour of the upper class based on jQuery value retrieved
I am implementing a for each loop to display results, where the status value can change and I intend to adjust the color accordingly. For instance, if status == 1, then the class will be red, and when it is 2, the color changes to green.