Having an issue here - I'm trying to use JavaScript to set some attributes.
for(i=0;i<div_navi.childNodes.length;i++){
if(div_navi.childNodes[i].nodeName =="SPAN"){
div_navi.childNodes[i].setAttribute("onclick","getContent(div_navi.childNodes[i].textContent);
div_navi.childNodes[i].style.cursor ="pointer";
}
if(div_navi.childNodes[i].nodeName =="A")
div_navi.childNodes[i].setAttribute("href",div_navi.childNodes[i].textContent);
}
}
I'm attempting to pass a parameter in getContent, but it's not functioning as expected. Any thoughts on how to resolve this?