Re-attaching jQuery detach(); September 26, 2023 by Tarik var el = $('#wrapper').detach(); $("#open_menu").click(function(){ $(this).append(el); });