Wednesday, September 2, 2009

[jQuery] Animating show() and hide() of TBODY

I am writing some code where I want to insert and subsequently hide a
TBODY element within a table, and animate it doing so.

Unfortunately, if I do hide() followed by show(250), say, then the
element becomes
<tbody style="display: block">
and this results in the inserted section displaying after the end of
the table :-(

Is there an easy way to make this set "display: table-row-group"
instead? I tried setting that explicitly in the HTML, but that didn't
seem to help.

I'll make a standalone test case if that will help.

Thanks,

Brian.

No comments: