Here\'s an example of my problem on jsFiddle.
I have a table with striped rows imposed by using tr:nth-child(odd) in the CSS, as is done in Twitter Boot
tr:nth-child(odd)
As far as I understand:
$('#mytable tbody tr').live('click', function(event) { $clicked_tr = $(this); $('#mytable tbody tr').removeClass("highlight"); $clicked_tr.addClass('highlight'); });