Right now I have a clicked link change the class of itself, by using this.
onclick="highlightLinks(this)" class=""
Code:
function highlightLinks(obj) {
var linkList = document.getElementById("navigationDiv").getElementsByTagName("a");
for (i = 0; i < linkList.length; i++) {
linkList[i].className = "";
}
obj.className = "active";
}
How would I have another link on a page change the class for another element on that page too