I have the following table mark up
<table>
<tr>
<td>
<checkbox />
</td>
<td id="delete">
</td>
</tr>
<tr>
<td>
<checkbox />
</td>
<td id="delete">
</td>
</tr>
</table>
What I want to achieve is –
When a user clicks a checkbox in one of the columns, I want to add a class to the column (id of delete) in the same row. How can I achieve this? The column may not be in the column beside the checkbox.
Firstly you should use
classof delete asidattributes must be unique, then something like this should work: