I have some JS that created a menu based on notes docs. I want to change the style of the menu after the load of the menu. This is no big deal, I walk the DOM checking for an attribute of “Level” check if it is 1. If so, I change the textAlign to center. This works great in IE, but not FF. In FF it tells me that the attribute doesnt exist, but when I view the DOM in FF it shows the attribute and value and it tells me that getAttribute is built in. I have also tried hasAttribute. Am i missing something?? Here is my function
function AfterBuild(){
mydiv = document.getElementsByTagName("div");
for(var i=0; i<mydiv.length; i++)
{
if(mydiv[i].getAttribute("Level")==1)
{
mydiv[i].style.textAlign = "center";
}
}
}