Does anyone have any idea what this jQuery selector will do?
object.find('td:eq(1) div div');
I know that the td:eq(1) will get the 2nd td element in the object, but what will the 2 div’s referenced at the end of the selector do?
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.
This first part finds the 2nd
<td>overall in the object, not per-row (for that you want:nth-child). Thediv divpart finds divs 2 levels deep inside the selector.Here’s a matching example of
object.find('td:eq(1) div div');