I have a series of link on my pages with random a:hover classes so they display different colors on mouse over.
When a link is clicked its set to a different class so that it looks highlighted or active.
I need to create a script that first saves the class of the clicked link and then after it is changed and a new link is clicked finds the highlighted element and changes it back to the original class it was before changing the new active link.
What is the best way to store the class of the link until the new link is called.
Get the class of the previous highlighted link from a variable? Set the previous link to its original class.
Store the current class of the new link. Set the element as the current highlighted link.