[Javascript] "display none" to all children

Michael Borchers list at tridemail.de
Wed May 30 04:34:36 CDT 2007


I have a main div include several sheets:

<div id="sheet">
    <div id="subsheet1"></div>
    <div id="subsheet2"></div>
    <div id="subsheet3"></div>
</div>

How can I set style.display = 'none'; to all subsheets ("children of sheet") at once?

And is there a way to say: hide all children except f.e. subsheet2 ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20070530/27db41b3/attachment.htm>


More information about the Javascript mailing list