adding click function to a table row under tablesorter

adding click function to a table row under tablesorter

Hi,

I'm trying to be able to click a row to highlight it on table controlled by tablesorter. I'm having a great deal of difficulty achieving this as nothing seems to make any difference.

I am adding the following after the call to tablesorter.

$("tr").click(function(){ $(this).addClass("hilite"); });

This works on tables that are not sorted by tablesorter.

Any ideas? Or suggestions for another plugin that I could use instead of tablesorter and that will allow me to add this functionality?