[jQuery] Re: Removing Inner Tags

2009-06-15 Thread Charlie
assuming you're keeping the a tag there are quite a few ways to do this, here's a few: 1) $("div h1 a").appendTo("div"); $("div p, div h1").remove(); 2) var link=$("div h1 a"); $("div").html(link);// nothing left in div except a tag with this example, would wipe out anything else in div too

[jQuery] Re: Removing Inner Tags

2009-06-15 Thread Clare
Beautiful! All of them work great. Thanks for the useful info! Clare