JSTotD: Can query methods be called from elements?

Re: Finding Elements in the DOM

Can querySelector and querySelectorAll be applied to specific elements to find specific nodes that are children or must they always reference the “document”?

2 posts were merged into an existing topic: JS Tip of the Day: Finding Elements in the DOM