If you give your middle |
tags the "Table_Middle" class it makes it much easier to do. Then it only takes a few lines of jQuery. One to add the "Show Full Table" row, and another to add a click listener for that row. Make sure to change the colspan attribute's "X" value to the number of columns in your table.
// jQuery chaining is useful here
$(".Table_Middle").hide()
.eq(0)
.before('Show Full Table
');
$(".showFull").click(function() {
$(this).toggle();
$(".Table_Middle").toggle();
});
This is useful because it degrades nicely and is accessible across lots of browsers/devices. If JavaScript is turned off, or CSS is disabled (or any other scenario that could cause this code to not be supported), there is no "show full table" row.