What is the meaning of this selector: $("#someID > * *")
I know that > means child nodes and * means all nodes, but I’m confused by the two asterisks. Any ideas?
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.
It selects all grandchildren or lower of
#someID.Explanation:
#someID > *selects all direct children of#someID.Adding
*will select all descendants of those children. (but not the children themselves)Thus, it will select all descendants of
#someIDexcept for its direct children.It could also be written as
$('#someID *').not('#someID > *').