Probably the best way to do what you want is to actually remove and add the rows, provided there isn't too much data that you have to store.

You could do this with seperate tables in divs, but that is just messy, as now you don't have a single long table.

The W3C has ECMAScript mapping to the DOM. There are functions that will let you remove and add nodes.