Re-attaching jQuery detach();
<p>I have detached a div and want to re-attach it when clicking on a button.</p>

<p>Here's the code:</p>

<pre><code>$('#wrapper').detach();

$("#open_menu").click(function(){
    ATTACH HERE !!!
});
</code></pre>

<p>Any help will be appreciated.</p>
