Hello,
Im trying to copy a div and insert it into a tbody. But I cant get it to retrieve the html from the div.
<div id ="dtltmpl">
<tr>
<td>some text</td>
<td>some text</td>
<td>some text</td>
</tr>
</div>
- $("#copyDtl").click(function () {
- var $dtl = $("#dtltmpl").html();
- alert($dtl);
- $("#dtltbl > tbody").append($dtl);
- });