get sibling by id javascript code example Example: select sibling javascript let nextSibling = currentNode.nextElementSibling;