Monday, March 13, 2017

To find an adjacent DOM node in JavaScript try reaching up to the parent and then down again to a child.

this.whatever.parentElement.children[13].style = "background-color:purple;";

No comments:

Post a Comment