Highlight active page in a table row using views I have a drupal 7 view that is outputting the titles of nodes which is in table form. 

&lt;table class="views-table cols-0" thmr="thmr_80"&gt;
  &lt;tbody&gt;
    &lt;tr class="odd views-row-first"&gt;
      &lt;td class="views-field views-field-counter"&gt;
       &lt;a href="#"&gt;Link 1&lt;/a&gt;          
      &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr class="even"&gt;
      &lt;td class="views-field views-field-counter"&gt;
        &lt;a href="#" class="active"&gt;Link 2&lt;/a&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;


Drupal gets me close by adding "active" class to the link (Link 2), but I would like it for the entire row (TR).

I saw another question like this one asked for an unordered list, but I tried that code and it didn't work. Maybe a little tweaking needed?

Thanks guys!
I was able to get the answer using jquery. Hope this will help others who need it. Just add this code into the top of the page template and it will create the active class for you.

&lt;script type="text/javascript" charset="utf-8"&gt;

$(function() {
   $('.views-table a.active').closest('tr').addClass('active_row');
});

&lt;/script&gt;


Remember to change the "views-table" to match your own table.