I am wondering if it is possible to remove a tag but leave the content in tact? For example, is it possible to remove the SPAN tag but leave SPAN\'s content there?
$(function(){ var newLbl=$("p").clone().find("span").remove().end().html(); alert(newLbl); });
Example : http://jsfiddle.net/7gWdM/6/