I need to make the table row change to a particular color based on the value contained within the 'td' tag. All the functions I have found so far have not been useful to me since I tried to implement it in my code and I did not succeed.
<tr>
<td id="IDbatchID">010203</td>
<td id="IDproduct">Leite</td>
<td id="IDbatchSize">30000</td>
<td id="IDpriority">1</td>
<td id="IDstartReq">03-31-2017 08:00:00</td>
Based on the value inside this 'td' I need it to change the color of the 'tr'. For example, as here is 'Completed', I need the entire line to turn green.
<td id="IDstatus">Completed</td>
</tr>
I do not know if I could be clear in my doubt. I ask for help, because everything I have found so far has not served me.