I would like to highlight multiple links with the same href when i hover one of them, and I would like to know if it's possible to solve with JS?

For example if I hover the Gorilla in the <li> I would like the Gorilla in the table to be highlighted as well. I guess it's should be possible to dynamically add class="hover" to both links with the same url?

Code:
<ul>
<li><a class="hover" href="/gorilla">Gorilla</a></li>
<li><a href="/lemur">Lemur</a></li>
</ul>

<table>
<tr><td><a class="hover" href="/gorilla">Gorilla</a></td></tr>
<tr><td><a href="/lemur">Lemur</a></td></tr>
</table>