Descendant of sibling jquery <p>I have recently switched from using XPath to using jQuery selectors. I am having trouble with a particular XPath selector I would use:</p> <p>//h1[contains(.,'Some Title')]//following::a[1]</p> <p>Basically I get the first link element from a descendant of a sibling.</p> <p>From what I understand jQuery selects descendants as "ancestor descedant" and selects siblings as "sibling + sibling".</p> <p>How do I combine these when I don't care/know what the sibling tag is? (In other words "h1 + ul a" works but I want to leave out the ul if possible"</p>