0
나는 html tr 및 th의 복제를 원하지만 outer thead/thead 요소는 캡처하지 않습니다.JQuery는 thead 테이블의 각 tr 만 복제합니다.
<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');
['$ Vehicle_1 '] .clone();'] (http://api.jquery.com/clone) –
젠장! 그거 쉽지. 감사합니다 롭! – user1040259