Original by Matt Kruse

Expandable "Detail" Table Rows

The only requirements are:

  1. Put a class of "parent" on each parent row (tr)
  2. Give each parent row (tr) an id
  3. Give each child row a class of "child-ID" where ID is the id of the parent tr that it belongs to
Example Table (click a row)
ID Name Total
123 Bill Gates 100
  2007-01-02 A short description 15
  2007-02-03 Another description 45
  2007-03-04 More Stuff 40
456 Bill Brasky 50
  2007-01-02 A short description 10
  2007-02-03 Another description 20
  2007-03-04 More Stuff 20
789 Phil Upspace 75
  2007-01-02 A short description 33
  2007-02-03 Another description 22
  2007-03-04 More Stuff 20