jQuery - simple demo

  

The HTML

"View source"
Buttons initially have no JS associated with them:

  

The JS

"View source"
Assigns functions to buttons.
Functions do some jQuery things using jQuery selectors.

  

Things you could do