Forums

  • # February 1, 2009 at 7:39 pm

    Hi all,

    Say I have the following markup:

    Code:

    and this jQuery:

    Code:
    $(‘a’).click(function() {
    $(this).fadeOut(300);
    return false
    });

    When you click the link it’ll fade out, so far so good. What if I want to include the following "," (comma) as well? How do I target that?

    Thanks,
    Oskar

    # February 2, 2009 at 5:41 am

    Aha, that was what I was afraid of. I ended up using your method with $(this).next().fadeOut(); Works fine.

    Thank you! Now I’ve got a sweet ass module for clicking tags to posts ;-)

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag