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

Select next with class

  • # May 23, 2013 at 5:39 am

    I want to select “.slide-content”. I tried next(), nextAll() and now closest(). Isn’t possible?

    PS: I know I shouldn’t have that extra div but I need that for other script.

    # May 23, 2013 at 5:58 am

    $(‘.slide-title’).click(function() {

    im sure there is an easier way to go but what do you want to do with it?

    # May 23, 2013 at 6:21 am

    That’s perfect, thank you.

    I was just using length to have sure that I was selecting .slide-content, I don’t need the content size.

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