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…

#199776
Shikkediel
Participant

One tricky thing I now noticed was that the fiddle didn’t have the jQuery library enabled. Made a tweak that seems to work :

$('#navi').find('a').each

http://jsfiddle.net/f5dxfqn7/2/

Hope that solves it (don’t copy the whole code from that though, it’s just for demonstration).