我需要刪除<a>
從list-container
到selected container
在click
。如何用jQuery做到這一點。如何從div中刪除鏈接並通過jQuery將其添加到另一個div?
<div class="list-container">
<a class="list-item" data-type="community" href="javascript:{}">Community Tower 2<span class="icon icon-add"></span></a>
<a class="list-item" data-type="community" href="javascript:{}">Community Tower 3<span class="icon icon-add"></span></a>
</div>
<div class="selected-container">
<a class="list-item" href="javascript:{}">U-Bora Tower (Property) <span class="icon icon-remove"></span></a>
<a class="list-item" href="javascript:{}">Business Bay (Community) <span class="icon icon-remove"></span></a>
</div>
[你嘗試過什麼?](http://whathaveyoutried.com) – chriz 2013-03-19 11:03:24
顯示一些代碼,你已經嘗試? – Kathiravan 2013-03-19 11:03:30