Re-attaching jQuery detach();

var el = $('#wrapper').detach();

$("#open_menu").click(function(){
    $(this).append(el);
});

Leave a Comment