Highlighting active link with JS problem
Hi.
I found this script which highligts active link based on page id given in body tag (
https://www.youtube.com/watch?v=dRLOHxyCaGU). The problem is that i have same named links in couple of sections on my page, so they get highlighted both at some point.
BAND
-Members
GALLERY
-Members
MULTIMEDIA
-Misc
FAQ
-Misc
- <body id="Misc">
- $("#Misc a:contains('Misc')").parent().addClass('active');
So, is there any way i could give my links seperate id or something so it would be highlighted only in correct place? I wouldt like to rename my links because of this... Thanks