On May 15, 6:08 am, Equand <[EMAIL PROTECTED]> wrote: > but empty clears the element. and I need only to remove a particular > element... > if i use empty, i need to clear the parent. but there are some > elements in parent which should not be removed...
You could save a reference to its parent before hand, e.g. $("a.removeme").click( function(e) { e.preventDefault(); var $this = $(this), $parent = $this.parent(); $parent.find(".removemetoo").remove(); } )