Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Dom traversion: find "," ??

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #24018
    Oskar
    Participant

    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

    #53678
    Oskar
    Participant

    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)
  • The forum ‘JavaScript’ is closed to new topics and replies.