1-) The dirty way: $('ul li a').removeAttr('href')
2-) A standard way: image = []; $('ul li a img').each(function(i) { image[i] = $(this).clone(); $(this).parents('li').html(image[i]); }) MaurĂcio On Tue, Jun 9, 2009 at 2:13 PM, alex <alex_bille...@hotmail.com> wrote: Hi folks This has me stumped. I have a list of images and I want to remove the links but retain the images. So this <ul> <li><a href="foo"><img src="path/to/image1" /></a></li> <li><a href="foo"><img src="path/to/image2" /></a></li> etc etc </ul> Becomes this <ul> <li><img src="path/to/image1" /></li> <li><img src="path/to/image2" /></li> </ul> Using this $('ul a').remove(); does not work as it also removes the images as well. Any help would be much appreciated. Thanks in advance. Alex -- Armand Datema CTO SchwingSoft