I have the code below in all of my pages, except for each page, the class is on that specific page.
<li><a href="../index.html">Homescreen</a></li>
<li><a href="socialstuff.html">Social Stuff</a></li>
<li><a href="sops.html">SOP's</a></li>
<li><a href="login.php">FTO Documents</a></li>
<li><a class="selected" href="changelog.html">Changelog</a></li>
I am working on throwing these inside of an include folder, that way each page I create does not have to have this line of code in each page. My only question is, how do I detect what page I'm on, and then automatically remove the old class slected and add the new one to the current page?