Results 1 to 1 of 1
Jun 15, 2006, 04:32 #1
- Join Date
- Sep 2004
- 0 Post(s)
- 0 Thread(s)
Highlight multiple links with same url on hover
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?
<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>