> <table id = "DataGridResult">
> <tr><td>Name</td><td>Age</td></tr>
> <tr><td>1</td><td>2</td><tr>
> <tr><td>1</td><td>2</td><tr>
> </table>
>
> The code is like this:
>
$("table#DataGridResult").children().find('tr:eq(0)').wrap("<thead></thead>"
);
Take a look at the HTML of the original table using Firebug. Firefox adds a
TBODY for you. The first TR is inside the TBODY. This should work:
$("<thead></thead>").append($("#DataGridResult
tr:first")).prependTo("#DataGridResult");
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/