I use asp.net's DataGrid to show data. And I want to use as
http://icant.co.uk/csstablegallery/index.php .
So I need to change like this:
<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>
<table id = "DataGridResult">
<thead>
<tr><td>Name</td><td>Age</td></tr>
</thead>
<tbody>
<tr><td>1</td><td>2</td><tr>
<tr class="odd"><td>1</td><td>2</td><tr>
</tbody>
</table>
The code is like this:
$("table#DataGridResult").children().find('tr:eq(0)').wrap("<thead></thead>");
but in firefox the result is this:
<table id = "DataGridResult">
<tbody>
<thead>
<tr><td>Name</td><td>Age</td></tr>
</thead>
<tr><td>1</td><td>2</td><tr>
<tr><td>1</td><td>2</td><tr>
</tbody>
</table>
:(
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/