dojosiblings

Dojo get next sibling based on current event target


I have this dropdown menu, and all i want to do is upon firing the onmouseenter event, to change the border-left of the targets next sibling to white. So far i can address the currentTarget's border-left with ease, but i cant find a way to do the same for the next sibling. Any ideas ?


Solution

  • please try this

    dojo.query(evt.currentTarget).next()[0]