JQuery how to remove all tags from a


I've tried both of the following but none of them worked:



EDIT: $('#divhtml').find('span').remove() worked on 2nd try.

Best Solution

You have already used a correct statement:


This should work. Please provide more context... See this jsfiddle as "proof" that something else is wrong: http://jsfiddle.net/Pbgqy/