My asp.net project utilizes a master page that includes a list within it.
<ul id="navigation">
<li id="li1" runat="server" class="selected"><a href="Events.aspx">Events</a></li>
<li id="li2" runat="server"><a href="AddEvent.aspx">Add Event</a></li>
<li id="li3" runat="server"><a href="MyProfile.aspx">Profile</a></li>
<li id="li4" runat="server"><a href="Friends.aspx">Friends</a></li>
<li id="li5" runat="server"><a href="FindFriends.aspx">Find Friends</a></li>
<li id="li6" runat="server"><a href="Schedual.aspx">Schedule</a></li>
<li>
<asp:LinkButton ID="LogOutButton" runat="server" OnClick="LogOutButton_Click">Log Out</asp:LinkButton>
</li>
</ul>
The selected css class includes an image indicating the current page. How can I dynamically change this class using javascript or C# when navigating?
I lack expertise in javascript, so any guidance would be greatly appreciated.