I want to append the content within my 'li' to the 'trashbin' div when the link class 'ui-icon-trash' is clicked. I have a list and some li content like so:
<li class="ui-widget-content ui-corner-tr">
<h5 class="ui-widget-header">item1</h5>
<img src="tiem.png" alt="item1"/>
<div class="draggableicons">
<a style="float:left" href="#" title="product information here" class="ui-icon ui-icon-circle-plus">More info...</a>
<a href="link/to/cart/script/when/we/have/js/off" title="Delete this image"
class="ui-icon ui-icon-trash">
Delete image</a>
</div>
</li>
<div id="trashbin"></div>
I want to append everything within the 'li' tag to a 'div' when 'ui-icon-trash' is clicked. I want it to be cloned then appended so that I can run it multiple times. How can i do this????