JSFiddle - React, Tailwind, and code Playground
HTML
<button id='out'>out</button>
<button id='in'>in</button>
<img id='toggle' src='http://www.pressrecord.com.au/wp-content/uploads/2013/02/example.png' style='width: 100px; border: 1px solid black;'/>
<img id='stamm' src='http://www.trippapparel.com/wp-content/uploads/2014/02/Example-Kickstarts.jpg' style='width: 100px; border: 1px solid black;'/>
JavaScript
var jqoRezeptbild = null;
$("body").on("click", "#out", function() {
jqoRezeptbild = $( "#toggle" );
jqoRezeptbild.remove();
});
$("body").on("click", "#in", function() {
$( "#stamm" ).before( jqoRezeptbild );
});