Forums
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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…
Nothing. It is so weird, I had everything identical but it would not work. Rİght now it did. Maybe a missed a comma or something. Thanks again. You have been really helpful.
No problem, the only thing I changed was to enable jQuery again…
Was it disabled?
Yes, you can check your original fiddle. I think you may also beware of the fact that relative paths (like specified inside the links) could possibly not work in a live environment. Try using absolute paths if you run into an issue there. Admittedly, I’m no wizz with regular expressions.
I see. Thanks for the advice. Actually I had just come across an article on the topic. I will definitely revise the links.
I just read that if you are working on your local machine and testing your site fully before uploading it, relative paths should not be an issue.
I never run things locally so I couldn’t say… but it’s better to prevent than cure.
I agree. Thanks for the heads up.