Home › Forums › JavaScript › using jquery to remove hyperlinks from html › Re: using jquery to remove hyperlinks from html
April 7, 2010 at 9:55 pm
#73665
diablero13
Member
Try both:
Code:
$(‘#mydiv a’).each(function(){
$(this).replaceWith($(this).text());
});
$(this).replaceWith($(this).text());
});