Grow your CSS skills. Land your dream job.

Opposite of .parent() in jQuery

  • # August 24, 2009 at 12:50 pm

    Hi,

    This might sound completely stupid but i cannot remember if there is a way to get an element inside of another eg:

    Code:

    So you click the clickable tabe and the one inside will open/close

    Regards

    Rob
    # August 24, 2009 at 2:27 pm

    $("p.clickable").click(function() {

    $(this).children(".toMove").animate(blar blar);

    });

    Something like that would prob set you on the right path…

    # August 26, 2009 at 11:47 am

    you can also use .find()

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".