A Simple Set of Demos

The demos include text substitution, manipulating attributes and iterating through a list. The headings of each demo are inserted by taking the id from the div of each demo, normalising it and creating a heading - so the way this page works is also a demonstration.

Example
Code that Makes it Happen
Create a 'dom' object.

The text below can be hidden / revealed by clicking this button.

I can be hidden

Also can be hidden

Setup on Window Load