I have a table for which I want to display only the first row by default, but display an additional number of X rows if the user clicks the "show more" link (and hides the X rows back if the user then clicks "show less").
To illustrate this, I want the default view when loading the page to look like this:
Top Scores
====================================
| 1 | show this row always! |
====================================
-show more-
Then, if the user clicks "show more", the table should expand with additional rows and look like this:
Top Scores
====================================
| 1 | show this row always! |
| 2 | newly displayed row |
| 3 | newly displayed row |
| 4 | newly displayed row |
| 5 | newly displayed row |
====================================
-show less-
Then, obviously, if the user clicks "show less", the table returns to default (only the first row is shown).
.toggle() jQuery, , , .
!