Hi,
Tried both those methods. the plugin ended up deleting all siblings,
and replacewith cant replace it with nothing, but made my own quick
and dirty solution should anyone ever want to know the solution :

<div>***<a class="tester" href=""><div>This is a test</div></a>---</
div>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
  $('a.tester').each(function() {
        $(this).before($(this).html()).remove();
  });
});
//]]>
</script>

On Aug 6, 4:04 pm, "Richard D. Worth" <rdwo...@gmail.com> wrote:
> It's not built-in, but there are plugins for 
> it:http://www.google.com/search?q=jquery+unwrap
>
> Or you could use replaceWith:
>
> http://docs.jquery.com/Manipulation/replaceWith
>
> <http://www.google.com/search?q=jquery+unwrap>- Richard
>
> On Thu, Aug 6, 2009 at 10:42 AM, paulswansea <sendtoswan...@hotmail.com>wrote:
>
>
>
>
>
> > I'm trying to remove a link, but keep the content within, is there a
> > simple way to do this in jquery?
>
> > <div>***<a href=""><div>This is a test</div></a></div>
>
> > turns into
>
> > <div>***<div>This is a test</div></div>- Hide quoted text -
>
> - Show quoted text -

Reply via email to