My "expand all" and "collapse all" links aren't working in IE. Anyone help?
this is the function:
these are the calls:
this is the function:
Code:
function toggleAll(newdisplay)
{
var x = document.getElementsByTagName("li");
for (var i=0;i<x.length;i++)
{
var classname = x[i].getAttribute("class");
if (!(classname=="detail")) continue;
element = x[i].style;
element.display=newdisplay;
}
}
these are the calls:
Code:
<a href="javascript:toggleAll('block')">expand all</a> : <a href="javascript:toggleAll('none')">collapse all</a>
Last edited: