How can I change the background colour of a table row if I hover the last element on the same row using CSS?
Note: table row background colour should not change while hovering the other 'td'; Hovering effect should be applied only by a single 'td'.
<table style="width:100%">
<tr>
 <th>Firstname</th>
 <th>Lastname</th> 
 <th>Age</th>
</tr>
<tr>
  <td>Jill</td>
  <td>Smith</td> 
  <td id="last-child">50</td>
 </tr>
<tr>
  <td>Eve</td>
  <td>Jackson</td> 
  <td id="last-child">94</td>
</tr>
</table>
in the above table code if I hover over the 'td' having an id of last-child, then it should change the background colour of the corresponding table row. How can I achieve it.?
 
     
     
    