How can I get all tr elements without id attribute?
<tr id="name">...</tr>
<tr>...</tr>
<tr>...</tr>
Thanks
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.
Pretty straightforward:
That will give you all
trelements lacking bothidandclassattributes. If you want alltrelements lacking one of the two, useorinstead ofand:When attributes and elements are used in this way, if the attribute or element has a value it is treated as if it’s true. If it is missing it is treated as if it’s false.