I would like to know what $.each() stands for in jquery,
What is it selecting?
Is there an equivalent in prototype?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
$.each()isn’t selecting anything. It is just a utility to iterate over a collection.When you do:
jQuery is internally calling:
…with
thisrepresenting the matched set.http://github.com/jquery/jquery/blob/master/src/core.js#L231
You could just as easily call it yourself manually.