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…
April 5, 2015 at 9:18 am
#199774
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…