This demo uses the jquery toggle method to show how to toggle on and off additional rows in a table. There are certainly a few ways you can do this differently, this is just one. Be sure to include the JQuery library in the 'head' section of your web page like this:
| # | first | last | born | died |
|---|---|---|---|---|
| 1 | george | washington | 1732 | 1799 |
| 2 | john | adams | 1735 | 1826 |
| 3 | thomas | jefferson | 1743 | 1826 |
| 4 | james | madison | 1751 | 1836 |