Ok, this is not as simple as you would think. You see, I’ve got this navigation menu:
Home
Page 1
Page 2
[...]
Now, I have a default script I import on every page just in case I want to change something without editing every single page. Kind of like a stylesheet for HTML/JS. And I have added a page there, using jQuery’s appendTo to the #nav. Now on that page, which is called “sol”. On that page, there is still no link to that current page, so I can’t add the class.
So I need a script on that page, saying that the link with the ID “solink” need to be classed to current.
Any way? Thanks :)