[jQuery] Re: Using $(this) in :has()

2007-12-10 Thread ebakunin
Works great. Thanks for the help. On Dec 9, 10:22 pm, "John Resig" <[EMAIL PROTECTED]> wrote: > Try this, instead: > > $(".trigger").click(function () { > $(this).parents(".container").hide("slow"); > > }); > > That should get you what you're looking for. > > --John > > On Dec 9, 2007 7:53 PM

[jQuery] Re: Using $(this) in :has()

2007-12-09 Thread John Resig
Try this, instead: $(".trigger").click(function () { $(this).parents(".container").hide("slow"); }); That should get you what you're looking for. --John On Dec 9, 2007 7:53 PM, ebakunin <[EMAIL PROTECTED]> wrote: > > I am having trouble understanding how to use $(this) in a function. I > w