I tried:
but it didn
To provide a more direct answer, use:
var gonee = $('.myclass'); $('.myclass').replaceWith('');
see me in action: http://jsfiddle.net/YNe6w/1/