JSFiddle - React, Tailwind, and code Playground
HTML
<table class="schedules">
<th colspan="2">Saved Schedules</th>
<tr>
<td>Winter 2011 </td>
</tr>
<tr>
<td>Winter 2011 (2) </td>
</tr>
<tr>
<td>May Term 2011 </td>
</tr>
<tr>
<td>Fall Term 2011</td>
</tr>
</table>
JavaScript
$(document).ready(function(){
$(".schedules tr").click(function(){
$(this).find('td').css("background-color","blue")
$(this).siblings().find('td').css("background-color","white");
});
});