JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="remove" value="remove div" />
<input type="button" id="attach" value="attach div" />
<div>Click below to test before remove.</div>
<div id="featured" style="">
    <img src="http://www.iconatlas.com/content/image/4c4fb9058ead0ebe5ff30800/new_message_email_letter.png" width="32" height="32" border="0" >
    <img src="http://www.iconatlas.com/content/image/4c4fb9058ead0ebe5f470900/qualification_history_diploma_graduation.png" width="32" height="32" border="0" >
    <img src="http://www.iconatlas.com/content/image/4c4fb9058ead0ebe5f710900/video_file_movie_film.png" width="32" height="32" border="0" ><img src="http://www.iconatlas.com/content/image/4c4fb9058ead0ebe5f9b0900/add_event_plus_increase.png" width="32" height="32" border="0" ><img src="http://www.iconatlas.com/content/image/4c4fb9058ead0ebe5fbb0800/database_storage.png" width="32" height="32" border="0" > 
</div>

CSS

#featured img {
    position: relative;
}

JavaScript

$(function(){
    $('#featured').click(function(){
        alert('test');
    });
    var elem;
    $('#remove').click(function(){
       elem = $('#featured').remove();        
    });
    $('#attach').click(function(){
       elem.appendTo('body');        
    });
});