How can one select specific sibling of a context node using jQuery?
Posted
by C.W.Holeman II
on Stack Overflow
See other posts from Stack Overflow
or by C.W.Holeman II
Published on 2010-04-02T23:25:15Z
Indexed on
2010/04/02
23:33 UTC
Read the original article
Hit count: 162
jQuery
|jquery-selectors
How can one select a specific sibling of a context node using jQuery? Specifically, given context node myContextNode
select the sibling span
with class myClass
.
document.evaluate("../span[@class='myClass']",
myContextNode, lu, XPathResult.FIRST_ORDERED_NODE_TYPE, null).
singleNodeValue;
© Stack Overflow or respective owner