how to restore HTML elements that are removed by jQuery's remove
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).ready(function()
{
    $('#remove').click(function()
    {
        $('.test').remove();
    });
});</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
&lt;div class="test-wraper"&gt;
    &lt;div class="test"&gt;
        test
    &lt;/div&gt;
    &lt;div class="test2"&gt;
        test2
    &lt;/div&gt;
&lt;/div&gt;
&lt;button id='remove'&gt;Remove&lt;/button&gt;
&lt;button id='back'&gt;Back&lt;/button&gt;</code></pre>
</div>
</div>
</p>

<p>I want to restore my <code>.test</code> div using jQuery, after I've removed it. How do I achieve this?</p>