Here is one way you could do it:

$(document).ready(function() {
  $('a.remove').click(function() {
    $(this).parents('div.box').fadeOut();
    return false;
  });
});


Hope that helps.

--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jul 8, 2007, at 4:06 PM, [EMAIL PROTECTED] wrote:


I have a div with class "box" that contains a link with class
"remove". When the link is clicked I want to .fadeOut the entire div
that is holding the link.

Is this possible? I've been trying different thing but nothing seems
to work. Thanks in advance


Reply via email to