I think [nextElementSibling](https://developer.mozilla.org/en-US/docs/Web/API/ChildNode.nextElementSibling) does what you want here.