using jquery to remove links, but not images
jquery
Solution
If you aren't running 1.4:
$("a:has(img)").each(function() { $(this).replaceWith($(this).children()); })
Problem
I have a that has a bunch of list items, each with an image wrapped in a hyperlink. I'm trying to write some jQuery that will remove the links, but not the images. Is this possible?