[thelist] DHTML Question

Scott Wehrenberg swehren at gmail.com
Thu Jul 7 14:51:57 CDT 2005


On 7/7/05, Steve James <steve at epicunion.com> wrote:
> I want to make a global change to all divs using javascript, but they
> don't have ID's (trying to make this XHTML compliant). Is there a way to
> do something to the affect of:
> 
> document.div.style.visibility = "hidden";
> 

divs = document.getElementsByTagName('div');
for(var i in divs)
{
    divs[i].style.visibility = 'hidden';    
}


More information about the thelist mailing list