You could just have two tbody
elements in your primary table. One would be used for displaying, and the other for buffering. That way you could skip appending the other tbody
and just remove display.none
from the buffer to display it. My guess is that it could be a little faster and perhaps solve the glitch in IE.
An another method (trick?) for showing or hiding elements in a table I've learned is setting position
to absolute
on a row or tbody
to hide it, instead of using display
. That still hides it, but without altering (messing up) the table's layout. You could try using it to hide the buffer.
Generally, tables are one the most quirky elements there are, even in the modern browsers. Doing anything advanced with them usually leads to these little headaches, so good luck.