>     $("#tableid a").click(function() {
>          $("#tableid tr").removeClass("highlight");
>          $(this).parents("tr").addClass("highlight");
>      }

It is a little faster to remove classes only on the rows that are
highlighted:

          $("#tableid tr.highlight").removeClass("highlight");


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to