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

Coffeescript nested iterations

  • # March 22, 2013 at 3:55 pm

    Nevermind. You did it again. It’s working!

    # March 22, 2013 at 3:57 pm

    One last question…this seemed like a situation where I need to iterate through html elements with .each. How do I know when I need to do that?

    And again, thank you very much. Thats a very simple and concise solution. I appreciate all your help.

    # March 22, 2013 at 5:11 pm

    You would use `each()` if you wanted to do something to all of them at once, but required you to go through each one individually (perhaps there is something unique about each one).

    You can sort of relate `each()` to a for loop.

    # March 22, 2013 at 5:36 pm

    That makes sense. Thanks Doc!

Viewing 4 posts - 16 through 19 (of 19 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