I just want to clone the html tr and th’s, but not capture the outer thead /thead elements.
<thead id="justCloneTR"> // don't clone
<tr id="Vehicle_1"> // clone
<th>1</th> // clone
<th>2</th> // clone
</tr> // clone
</thead> // don't clone
<div id="putCloneHere"></div>
JS
$('#justCloneTR').clone('tr').appendTo('#putCloneHere');
If you have
idto thetrthen you can just use this..clone()reference: http://api.jquery.com/clone/Remember after cloning you should change the id of cloned element before you add it to DOM because you should not have 2 elements with same id.
Try this.