Ok here is my HTML (One row of about 20)
<tr class="post-unauth message-unread">
<td>
<input class="check-read" type="checkbox" checked="checked" value="68"/>
</td>
<td class="message-description" title="Post Title">
</td>
<td class="message-author">Name</td>
<td class="message-dates">3 hours ago</td>
<td class="message-commentcount" title="0 comment(s)">
</td>
</tr>
Now when the checkbox is clicked I need to change the class of the parent
$('.check-read').click(function() {
$(this).parent().parent().removeClass('message-unread').addClass('message-read');
});
I'm missing somthing obvious I think as this doesnt work (Doesnt error) but nothing changes.
I even tried setting the CSS background color and no change to the HTML.
Any suggestions?