<div id="test"> here is a test <p>a paragraph</p> <div class="notesure"></div></div>
var save = $('#test .notsure').detach();$('#test').empty().append(save);