Is there any way to get nextSibling and previousSibling of an element in YUI3? Just like there is :
node.get('parentNode');
where node is some node in the DOM.
You want .next() and .previous()
http://developer.yahoo.com/yui/3/api/Node.html#method_next
http://developer.yahoo.com/yui/3/api/Node.html#method_previous
The documentation suggests that node.get("nextSibling") and node.get("previousSibling") are what you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With