E
eggie5
Hi,
I'm trying to set the class of an element on my page w/ javascript like
this:
function ResetNavigation(element)
{
element.className = "active";
}
However, the effects of the active class are not showing up. When I add
this code to the above snippet, it is confirmed that the active is
being set as the element's class value.
alert(element.className);
Why won't my style render in the browser?
I'm trying to set the class of an element on my page w/ javascript like
this:
function ResetNavigation(element)
{
element.className = "active";
}
However, the effects of the active class are not showing up. When I add
this code to the above snippet, it is confirmed that the active is
being set as the element's class value.
alert(element.className);
Why won't my style render in the browser?