How can i retrieve all the tr with class=”ccc” from a table with id”=iii”?
Share
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.
Using the direct child selector will be faster:
Also, there is no point in
table#iiii. An id selector is faster than an element selector, so the following will suffice:In fact, if you can add an ID to your row (e.g.
MyRow) then you can bypass this alltogether, cutting down considerably the amount of DOM traversing you have to do