The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

Opposite of .parent() in jQuery

  • # August 24, 2009 at 12:50 pm


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


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


    # 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed