Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Can´t apply active class to sublinks on my page… Reply To: Can´t apply active class to sublinks on my page…

#199774
Shikkediel
Participant

I can’t see how it would have worked before to be honest. Did you change the href attributes as well then? The script is invoked immediately and what it does is check the url in the address bar and compare it to the links within the a tags. Those urls will not match the active window so no class will ever be applied here.

Maybe I’m having a blind spot on this one…