The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Change class?

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #36244

    Ok, this is not as simple as you would think. You see, I’ve got this navigation menu:

    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 :)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.