An example from dataTable shows:
var cell = $('td:eq(2)', nRow);
nRow is a DOM node passed in by dataTable. Sure enough, this grabs the second td in nRow. The question is, why? Where is this syntax documented?
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.
Yes, it’s documented.
Here: jQuery( selector, [context] )
The second parameter is the context where the selector is applied. It can be a DOM element, the
documentobject, or a jQuery object.