Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed jQuery Basics!
You have completed jQuery Basics!
Preview
An introduction to jQuery's handy .each() method.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
use it to make quick
work of smaller projects.
0:00
Let's talk about how jQuery can help you
with another way to traverse through a set
0:01
of elements.
0:05
Not to mention one of the most common
task you'll perform as a developer,
0:06
looping through a collection of items.
0:10
If you're taking this course,
chances are you've written a for loop and
0:13
are at least somewhat familiar
with this slightly tedious drill.
0:16
For let i = 0, i is less than
collection.length and so on.
0:20
Let's look at a simplified way to do
this in jQuery, the .each() method.
0:26
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up