如何用JQUERY 给一个DIV层添加子DIV
mychj 2013-06-15 02:54:58 <div id="youhuaDivTmp" width="100%" >
<div id="mydiv" name="mydiv" width="100%">
<table name="youhuaDivTb" width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr valign="top">
<td width="100%" valign="top"><iframe name="myFrame" id="myFrame" src="" height="200px" width="100%" border="0" frameborder="0">
</iframe>
</td>
</tr>
</table>
</div>
<div id="mydiv2" name="mydiv2"></div>
</div>
上面是要加入的DIV内容,如何将它加入这个DIV中并显示出来呢,<div id="listda"></div>
用JQERY来实现,
alert("开始批量进行增加数据");
$("#listda").empty();
var template = $("#youhuaDivTmp").html();
//alert(template);
// $("#listda").append(template);
$("#listda").after(template);
我用上面的代码没法实现,不知哪位知道麻烦告诉一下,谢谢