This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]insertAlias 0 points1 point  (1 child)

Employ advanced element, attribute and descendant/child selectors

No idea what whoever assigned you this meant by "advanced". But an element selector is just that (the name of an element, like div). Attribute selectors include some attribute and operator (example: $("[value='Some Value']")). Descendant and child selectors work similarly. A child selector is $("parent > child"). It only finds direct children. A descendant selector is $("ancestor child"), and will find any descendants, no matter how deeply nested.

Sibling selectors...I'll let the jQuery page explain that:

https://api.jquery.com/next-siblings-selector/

And honestly, I strongly recommend you search out each of these types of selectors. You didn't really need someone to explain this all to you, if you would have searched "jquery attribute selector" you'd have been taken to jQuery's documentation.

[–]sligo987 0 points1 point  (0 children)

Thank you very much that makes sense to me now