IPPC 2010 / Show, Hide or Toggle Elements
Show, Hide or Toggle Elements
Updated: Tuesday, 21 December 2010 at 16:30:45
Show all | Hide all
Section one: a div with a paragraph (Show)
You can show/hide an entire div by giving it a class of "toggleanything". Links and other child elements will work fine too. The element directly before this one is a heading, so it gets a show/hide link appended.
Section two: single paragraph (Show)
A single paragraph can be hidden by giving it a class of "toggleanything", too.
Now: a list (Show)
- You can hide a list
- Just give the <ul> the "toggleanything" class
- This time the preceding element is a paragraph