JSFiddle - React, Tailwind, and code Playground
HTML
<div id="copied-container">
<div id="copiedimages">
</div>
<button id="delete">delete</button> <!-- this will remove any images when i select them or highlight them -->
</div>
<div class="images">
<img src="http://brucemctague.com/wp-content/uploads/2010/07/one-1.jpg" width="100" height="100" alt="one" title="one">
</div><!-- end -->
<button>Copy</button>
<div class="images">
<img src="http://toahost.com/wp-content/uploads/2011/03/2.png" width="100" height="100" alt="one" title="one">
</div><!-- end -->
<button>Copy</button>
<div class="images">
<img src="http://www.londonninja.com/wp-content/uploads/2009/06/three.jpg" width="100" height="100" alt="three" title="three">
</div><!-- end -->
<button>Copy</button>
CSS
#copied-container {
background:#ccc;
float:right;
padding:10px;
}
JavaScript
$('button:not("#delete")').click(function(e){
$('#copiedimages').append($(this).prev('div.images').html()
.replace(/\</ig, '<')
.replace(/\>/ig, '>'));
});
$('#delete').click(function(e){
$('#copiedimages').html(' ');
});