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:46 am
#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).