My table structure is as follows:
<table>
<tr>
<td>table 1 a <span class="icon"></span></td>
</tr>
<tr>
<td>table 2 b <span class="icon"></span></td>
</tr>
<tr>
<td>table 3 c <span class="icon"></span></td>
</tr>
</table>
When I click on a row, the respective icon span should have the class
<span class="icon icon-active"></span>
Subsequently, clicking on another row should remove the icon-active
class from the previous row's icon span, while adding it to the newly clicked row's icon span.