-3
<div class="test1">
.........
</div>
<p>some text here</p>
<div class="test2">
</div>
我想以後test2的
感謝
<div class="test1">
.........
</div>
<p>some text here</p>
<div class="test2">
</div>
我想以後test2的
感謝
您可以使用克隆()的jQuery的功能
var divCopy = $('.test1').clone();
$('.test2').append(divCopy);
$('.test1:first').remove();
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.2.3/jquery.min.js"></script>
<div class="test1">
.........
</div>
<p>some text here</p>
<div class="test2">
</div>
謝謝:)它工作完美! – Suraj
看到jQuery的[後](http://api.jquery.com/after/) – abhishekkannojia