How to use jquery to remove <div> in a table?
Posted
by Pentatonic
on Stack Overflow
See other posts from Stack Overflow
or by Pentatonic
Published on 2010-05-15T00:57:13Z
Indexed on
2010/05/15
1:04 UTC
Read the original article
Hit count: 262
I'm trying to remove a few rows surrounded by a div, but it doesn't work, why?
$(function(){
$("#div1").empty();
});
<table id="tbl" border="1px">
<thead>
...
</thead>
<tbody id="tblBody">
<div id="div1">
<tr id="tr1">
<td>
row1
</td>
</tr>
<tr>
<td>
row2
</td>
</tr>
</div>
</tbody>
</table>
© Stack Overflow or respective owner