[Javascript] "display none" to all children

David Dorward david at dorward.me.uk
Wed May 30 06:15:00 CDT 2007


On 30 May 2007, at 10:34, Michael Borchers wrote:
> I have a main div include several sheets:
>
> How can I set style.display = 'none'; to all subsheets ("children  
> of sheet") at once?

Add a class (using the className property) to sheet, and have a  
descendent selector in your stylesheet.

-- 
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/





More information about the Javascript mailing list