var hideContent = $(".slider-block-content .slides").remove(); $(".slider-block").append(hideContent);