How to keep td style elements that a function is removing?
<p>This code is part of a fixedtableheader program.  However, when you turn on a pager feature (adds some arrows at the bottom of the table so you can advance forward pages at a time), it loses the style information that was in my tables' td values.  I want to modify this code so that it gets the td elements first from the my tds and add them as well to the td it creates.  Can somebody help with this?</p>

<p>Here is the function causing the lose of td elements for the same of adding class="ui-widget-content".  By the way, when I do not use the pager option, my style information remains, so I am not even sure 100% this is the cause, but I would like to try adding the elements back here if you can provide input on how to do tihs to see if that works. </p>

<pre><code>    function objectToTable(objectArray,table){
        var body=$('tbody',table);
        body.children().remove();
        for(var i=0;i&lt;objectArray.length;i++){
             tr=$('&lt;tr&gt;&lt;/tr&gt;');
             for(var j in objectArray[i]){
                  tr.append($('&lt;td class="ui-widget-content"&gt;&lt;/td&gt;').html(objectArray[i][j]));
             }
             body.append(tr);
        }
    }
</code></pre>

<p>Thanks in advance for your help.</p>
