0
<tr>
    <td>
        <a href="some-link" class="active">some text</a>
    </td>
</tr>

<tr>
    <td>
        <a href="some-link">some text</a>
    </td>
</tr>

I can only use css selector properties to select the tr and add some properties to it if my anchor tag is active without any JS or JQuery. Please help!

random_user_name
  • 23,924
  • 7
  • 69
  • 103

1 Answers1

0

As someone already suggested here, the best way would be to simply add an "active" class to your tr

<tr class="active">
Community
  • 1
  • 1