remove detach jquery code example Example: jquery detach and remove var span = $('span').detach(); ... span.appendTo('body');