我想重新排列我的div的順序。刪除div並追加另一個div
這是我的結構在這裏:
<div class="span8 inner-left" style="clear:both;">
<div class="span3" style="text-align:right;"></div>
</div>
<div id="moreread" class="span4 inner-left"></div>
這是我想什麼我的結果是:
<div class="span8 inner-left" style="clear:both;">
<div class="span3" style="text-align:right;"></div>
<div id="moreread" class="span4 inner-left"></div>
</div>
這不起作用:
$(this).find('#moreread').after(".span3");
可能與http://stackoverflow.com/questions/1279957/how-to-move-an複製-element-into-another-element – Felix
http://stackoverflow.com/questions/4793604/how-to-do-insert-after-in-javascript-without-using-a-library –