I'm trying to change table row color when a radio button is checked in that row:
$(".myCheckbox").click(function(){
$(this).closest("tr").toggleClass("highlightRow", this.checked);
});
For some reason when I use FireBug to see the result I see the following on check:
<tr class="highlightRow .highlightRow">
How do I end-up with two classes and one with a dot?
CSS
.highlightRow {
background-color: #ccc;
}
Also tried:
.highlightRow TD {
background-color: #ccc;
}